Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
twistedpair committed May 20, 2024
1 parent 70fd636 commit 4363fd4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
16 changes: 9 additions & 7 deletions test/suite.test.ts
Original file line number Diff line number Diff line change
@@ -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', () => {

Expand Down Expand Up @@ -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: {}
Expand All @@ -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: {}
Expand All @@ -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: {}
Expand All @@ -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: {}
Expand Down Expand Up @@ -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'],
Expand Down

0 comments on commit 4363fd4

Please sign in to comment.