Skip to content

Commit

Permalink
JNG-3740 fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
noherczeg committed Feb 5, 2024
1 parent a41f70a commit fb98794
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { expect, beforeEach, test, suite, vi, Mock } from 'vitest';
import type { AxiosInstance } from 'axios';
import { type Resource, fetchWadlContent, extractResourceRoot } from './process-wadl';
import { JudoAxiosProvider } from '../src/services/data-axios';
import { X_JUDO_SIGNED_IDENTIFIER, X_JUDO_COUNT_RECORDS } from '../src/services/data-api/rest';
import { GodServiceForGalaxiesImpl } from '../src/services/data-axios/GodServiceForGalaxiesImpl';
import { GodServiceForEarthImpl } from '../src/services/data-axios/GodServiceForEarthImpl';
import { ViewGalaxyServiceImpl } from '../src/services/data-axios/ViewGalaxyServiceImpl';
Expand Down Expand Up @@ -67,7 +68,7 @@ suite('API Tests', () => {

assertSinglePostCall(resource, undefined, {
'headers': {
'X-Judo-SignedIdentifier': target.__signedIdentifier,
[X_JUDO_SIGNED_IDENTIFIER]: target.__signedIdentifier,
},
});
});
Expand All @@ -90,12 +91,12 @@ suite('API Tests', () => {
assertSinglePostResource(resource);

await godServiceForGalaxiesImpl.list(undefined, undefined, {
X_JUDO_COUNT_RECORDS: 'true',
[X_JUDO_COUNT_RECORDS]: 'true',
});

assertSinglePostCall(resource, {}, {
headers: {
X_JUDO_COUNT_RECORDS: 'true',
[X_JUDO_COUNT_RECORDS]: 'true',
},
});
});
Expand All @@ -113,7 +114,7 @@ suite('API Tests', () => {

assertSinglePostCall(resource, {}, {
'headers': {
'X-Judo-SignedIdentifier': target.__signedIdentifier,
[X_JUDO_SIGNED_IDENTIFIER]: target.__signedIdentifier,
},
});
});
Expand Down

0 comments on commit fb98794

Please sign in to comment.