diff --git a/README.md b/README.md index 596b211..e34e194 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ jobs: name: mabl Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Functional test deployment id: mabl-test-deployment @@ -49,7 +49,7 @@ jobs: name: mabl Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Functional test deployment id: mabl-test-deployment diff --git a/test/suite.test.ts b/test/suite.test.ts index 1d74dce..3e6a491 100644 --- a/test/suite.test.ts +++ b/test/suite.test.ts @@ -1,6 +1,7 @@ import {MablApiClient} from '../src/mablApiClient'; -import { booleanInput, optionalArrayInput, optionalInput, run } from '../src'; -import { ActionInputs } from '../src/constants'; +import {booleanInput, optionalArrayInput, optionalInput, run} from '../src'; +import {ActionInputs} from '../src/constants'; +import {AxiosHeaders} from 'axios'; describe('GitHub Action tests', () => { @@ -70,7 +71,7 @@ describe('GitHub Action tests', () => { expect(() => MablApiClient.throwHumanizedError({ status: 403, statusText: 'This is an error', - config: {}, + config: {headers: new AxiosHeaders()}, headers: {}, data: 10, request: {} @@ -81,7 +82,7 @@ describe('GitHub Action tests', () => { expect(() => MablApiClient.throwHumanizedError({ status: 401, statusText: 'This is an error', - config: {}, + config: {headers: new AxiosHeaders()}, headers: {}, data: 10, request: {} @@ -92,7 +93,7 @@ describe('GitHub Action tests', () => { expect(() => MablApiClient.throwHumanizedError({ status: 404, statusText: 'This is an error', - config: {}, + config: {headers: new AxiosHeaders()}, headers: {}, data: 10, request: {} @@ -103,7 +104,9 @@ describe('GitHub Action tests', () => { expect(() => MablApiClient.throwHumanizedError({ status: 500, statusText: 'This is an error', - config: {}, + config: { + headers: new AxiosHeaders() + }, headers: {}, data: 10, request: {} @@ -200,7 +203,6 @@ describe('GitHub Action tests', () => { }; const apiClient = new MablApiClient('test'); const requestBody = apiClient.buildRequestBody( - ['chrome', 'firefox'], ['alpha', 'beta'], ['Header-Uno:value-uno', 'Header-Dos:value-dos'],