Skip to content

Commit a0631e8

Browse files
committed
fix tests
1 parent b695298 commit a0631e8

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

test/models/businessOperation.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ describe('Business operation model', () => {
4343
amount: 100,
4444
userId: new ObjectId(),
4545
tariffPlanId: new ObjectId(),
46+
currency: 'RUB',
4647
};
4748

4849
const data: BusinessOperationDBScheme<PayloadOfWorkspacePlanPurchase> = {

test/models/businessOperationsFactory.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ describe('Business operation factory', () => {
2424
amount: 100,
2525
userId: new ObjectId('5eb9034a1ccc4421e2623dc2'),
2626
cardPan: '4455',
27+
currency: 'RUB',
2728
};
2829

2930
const data = {

test/resolvers/encodedJSON.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,30 +43,30 @@ describe('GraphQLEncodedJSON', () => {
4343

4444
describe('serialize', () => {
4545
it('should support serialization from object', async () => {
46-
const { data, errors } = await graphql(
46+
const { data, errors } = await graphql({
4747
schema,
48-
`
48+
source: `
4949
query {
5050
rootValue
5151
}
5252
`,
53-
FIXTURE
54-
);
53+
rootValue: FIXTURE
54+
});
5555

5656
expect(data?.rootValue).toEqual(FIXTURE);
5757
expect(errors).toBeUndefined();
5858
});
5959

6060
it('should support serialization from string', async () => {
61-
const { data, errors } = await graphql(
61+
const { data, errors } = await graphql({
6262
schema,
63-
`
63+
source: `
6464
query {
6565
rootValue
6666
}
6767
`,
68-
JSON.stringify(FIXTURE)
69-
);
68+
rootValue: JSON.stringify(FIXTURE)
69+
});
7070

7171
expect(data?.rootValue).toEqual(FIXTURE);
7272
expect(errors).toBeUndefined();

yarn.lock

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -458,9 +458,10 @@
458458
dependencies:
459459
"@types/mongodb" "^3.5.34"
460460

461-
"@hawk.so/types@https://github.com/codex-team/hawk.types.git#feat/revert-removing-accounting":
461+
"@hawk.so/types@^0.1.21":
462462
version "0.1.21"
463-
resolved "https://github.com/codex-team/hawk.types.git#5ee9fddca168db83313dccde239eaf2bb3afb50f"
463+
resolved "https://registry.yarnpkg.com/@hawk.so/types/-/types-0.1.21.tgz#8979b1aff670317e5d092aaefcd879729df88adc"
464+
integrity sha512-Jjy1qznAB7SprVtdgWJS9tdGAaK7rTNWEVWG05m6u3Qd3tTXkgty4D0oAmhTFBnJ/MElPVuundYnDB1r4dHZQQ==
464465
dependencies:
465466
"@types/mongodb" "^3.5.34"
466467

@@ -2131,9 +2132,9 @@ co@^4.6.0:
21312132
resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184"
21322133
integrity sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==
21332134

2134-
"codex-accounting-sdk@https://github.com/codex-team/codex-accounting-sdk.git#feat/revert-removing-accounting":
2135-
version "1.2.4"
2136-
resolved "https://github.com/codex-team/codex-accounting-sdk.git#c52431530e12f1e23804c0ede9f39fd4f2545994"
2135+
"codex-accounting-sdk@https://github.com/codex-team/codex-accounting-sdk.git":
2136+
version "1.2.5"
2137+
resolved "https://github.com/codex-team/codex-accounting-sdk.git#7de756db49aea72eebc7e45d8f9c458c9c2d8dce"
21372138
dependencies:
21382139
"@types/node" "^14.6.4"
21392140
axios "^0.20.0"

0 commit comments

Comments
 (0)