fix: test workflow

This commit is contained in:
Stevan Freeborn
2023-02-20 12:04:39 -06:00
parent 659fe6a764
commit 5dc36e29d0
2 changed files with 10 additions and 7 deletions
+8 -1
View File
@@ -22,7 +22,9 @@ jobs:
uses: EndBug/add-and-commit@v9
with:
commit: --no-verify
push: --force
message: 'fix: resolve linter errors'
committer_name: GitHub Actions
committer_email: actions@github.com
test:
needs: lint
name: test
@@ -86,6 +88,8 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
token: ${{ secrets.ACTIONS_PAT }}
- name: Setup node
uses: actions/setup-node@v3
with:
@@ -98,3 +102,6 @@ jobs:
uses: EndBug/add-and-commit@v9
with:
commit: --no-verify
message: 'fix: resolve formatting errors'
committer_name: GitHub Actions
committer_email: actions@github.com
+2 -6
View File
@@ -10,7 +10,7 @@ import { ApiResponseFactory } from './ApiResponseFactory';
import { DataFormat } from '../enums/DataFormat';
import { ReportDataType } from '../enums/ReportDataType';
import { Record } from './Record';
import { type ApiResponse } from './ApiResponse';
import { ApiResponse } from './ApiResponse';
import { type GetPagedAppsResponse } from './GetPagedAppsResponse';
import { type App } from './App';
import { type CollectionResponse } from './CollectionResponse';
@@ -49,11 +49,7 @@ export class OnspringClient {
* @throws {Error} - Thrown when the apiKey is null/undefined/empty/whitespace.
* @returns {OnspringClient} - A new instance of the OnspringClient class.
*/
constructor(
baseUrl: string | undefined | null,
apiKey: string | undefined | null,
config: CreateAxiosDefaults = {}
) {
constructor(baseUrl: string | undefined | null, apiKey: string | undefined | null, config: CreateAxiosDefaults = {}) {
if (ArgumentValidator.isValidUrl(baseUrl) === false || baseUrl === null) {
throw new Error('baseUrl must be an absolute and well-formed URI.');
}