Skip to content

Commit aa2c2d4

Browse files
committed
fix tests
1 parent ab231d1 commit aa2c2d4

5 files changed

Lines changed: 29 additions & 65 deletions

File tree

packages/cli/src/__tests__/unit/SchemaComposer.spec.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
import path from "path";
2-
import { loadManifest } from "../../lib/helpers/manifest";
32
import { SchemaComposer, Project } from "../../lib";
43
import { composedSchema } from "../project/sample";
54

65
describe("SchemaComposer validation", () => {
7-
let manifest;
86
const manifestPath = path.join(__dirname, "../project", "web3api.yaml");
97

10-
beforeAll(async () => {
11-
manifest = await loadManifest(manifestPath);
12-
});
13-
148
it("Should load & compose schema properly", async () => {
159
const project = new Project({
1610
manifestPath,

packages/js/client/src/__tests__/Web3ApiClient.spec.ts

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -315,39 +315,6 @@ describe("Web3ApiClient", () => {
315315
],
316316
});
317317

318-
const method4 = await client.query<{
319-
method4: ({
320-
prop: string;
321-
nested: {
322-
prop: string;
323-
};
324-
} | null)[];
325-
}>({
326-
uri: ensUri,
327-
query: `
328-
query {
329-
method4(
330-
arg: {
331-
prop: {
332-
root: {
333-
prop: {
334-
335-
}
336-
}
337-
}
338-
}
339-
)
340-
}
341-
`,
342-
});
343-
344-
expect(method4.errors).toBeTruthy();
345-
if (method4.errors) {
346-
expect(method4.errors[0].message).toMatch(
347-
/__w3_abort: Missing required property: 'root: InfiniteRoot'/gm
348-
);
349-
}
350-
351318
const method5 = await client.query<{
352319
method5: {
353320
prop: string;

packages/test-cases/cases/apis/object-types/query/index.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import {
22
Input_method1,
33
Input_method2,
44
Input_method3,
5-
Input_method4,
65
Input_method5,
76
Result,
87
Arg2
@@ -50,15 +49,6 @@ export function method3(input: Input_method3): (Result | null)[] {
5049
]
5150
}
5251

53-
export function method4(input: Input_method4): Result {
54-
return {
55-
prop: "prop",
56-
nested: {
57-
prop: "nested prop"
58-
}
59-
};
60-
}
61-
6252
export function method5(input: Input_method5): Result {
6353
return {
6454
prop: String.UTF8.decode(input.arg.prop),

packages/test-cases/cases/apis/object-types/query/schema.graphql

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ type Query {
1212
arg: Arg1!
1313
): [Result]!
1414

15-
method4(
16-
arg: InfiniteRoot!
17-
): Result!
18-
1915
method5(
2016
arg: Arg3!
2117
): Result!
@@ -47,11 +43,3 @@ type Nested {
4743
type Circular {
4844
prop: String!
4945
}
50-
51-
type InfiniteRoot {
52-
prop: InfiniteProp!
53-
}
54-
55-
type InfiniteProp {
56-
root: InfiniteRoot!
57-
}

yarn.lock

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6519,6 +6519,16 @@ combined-stream@^1.0.6, combined-stream@^1.0.8, combined-stream@~1.0.6:
65196519
dependencies:
65206520
delayed-stream "~1.0.0"
65216521

6522+
command-exists@^1.2.8:
6523+
version "1.2.9"
6524+
resolved "https://registry.yarnpkg.com/command-exists/-/command-exists-1.2.9.tgz#c50725af3808c8ab0260fd60b01fbfa25b954f69"
6525+
integrity sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w==
6526+
6527+
commander@3.0.2:
6528+
version "3.0.2"
6529+
resolved "https://registry.yarnpkg.com/commander/-/commander-3.0.2.tgz#6837c3fb677ad9933d1cfba42dd14d5117d6b39e"
6530+
integrity sha512-Gar0ASD4BDyKC4hl4DwHqDrmvjoxWKZigVnAbn5H1owvm4CxCPdb0HQDehwNYMJpla5+M2tPmPARzhtYuwpHow==
6531+
65226532
commander@^2.11.0, commander@^2.15.0, commander@^2.19.0, commander@^2.20.0, commander@^2.8.1:
65236533
version "2.20.3"
65246534
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
@@ -9091,7 +9101,7 @@ follow-redirects@1.5.10:
90919101
dependencies:
90929102
debug "=3.1.0"
90939103

9094-
follow-redirects@^1.0.0, follow-redirects@^1.10.0:
9104+
follow-redirects@^1.0.0, follow-redirects@^1.10.0, follow-redirects@^1.12.1:
90959105
version "1.13.3"
90969106
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.13.3.tgz#e5598ad50174c1bc4e872301e82ac2cd97f90267"
90979107
integrity sha512-DUgl6+HDzB0iEptNQEXLx/KhTmDb8tZUHSeLqpnjpknR70H0nC2t9N73BK6fN4hOvJ84pKlIQVQ4k5FFlBedKA==
@@ -12079,7 +12089,7 @@ js-sha3@0.5.7, js-sha3@^0.5.7:
1207912089
resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.5.7.tgz#0d4ffd8002d5333aabaf4a23eed2f6374c9f28e7"
1208012090
integrity sha1-DU/9gALVMzqrr0oj7tL2N0yfKOc=
1208112091

12082-
js-sha3@^0.8.0:
12092+
js-sha3@0.8.0, js-sha3@^0.8.0:
1208312093
version "0.8.0"
1208412094
resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840"
1208512095
integrity sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==
@@ -16557,7 +16567,7 @@ require-from-string@^1.1.0:
1655716567
resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-1.2.1.tgz#529c9ccef27380adfec9a2f965b649bbee636418"
1655816568
integrity sha1-UpyczvJzgK3+yaL5ZbZJu+5jZBg=
1655916569

16560-
require-from-string@^2.0.2:
16570+
require-from-string@^2.0.0, require-from-string@^2.0.2:
1656116571
version "2.0.2"
1656216572
resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909"
1656316573
integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==
@@ -17267,6 +17277,21 @@ socks@~2.3.2:
1726717277
ip "1.1.5"
1726817278
smart-buffer "^4.1.0"
1726917279

17280+
solc@0.8.3:
17281+
version "0.8.3"
17282+
resolved "https://registry.yarnpkg.com/solc/-/solc-0.8.3.tgz#896fdca2f0c4ccf18ff7a99f8183a5a1a8f6345c"
17283+
integrity sha512-VZvSHtwe2zAsoviClIpWjvrg22bIZ0pLtzFrYD9BtPfR7mhMZYwpptnzRizNaSvMngTR+gB9Ul8IyL5xaC7+jw==
17284+
dependencies:
17285+
command-exists "^1.2.8"
17286+
commander "3.0.2"
17287+
follow-redirects "^1.12.1"
17288+
fs-extra "^0.30.0"
17289+
js-sha3 "0.8.0"
17290+
memorystream "^0.3.1"
17291+
require-from-string "^2.0.0"
17292+
semver "^5.5.0"
17293+
tmp "0.0.33"
17294+
1727017295
solc@^0.4.20:
1727117296
version "0.4.26"
1727217297
resolved "https://registry.yarnpkg.com/solc/-/solc-0.4.26.tgz#5390a62a99f40806b86258c737c1cf653cc35cb5"
@@ -18118,7 +18143,7 @@ timsort@^0.3.0:
1811818143
resolved "https://registry.yarnpkg.com/timsort/-/timsort-0.3.0.tgz#405411a8e7e6339fe64db9a234de11dc31e02bd4"
1811918144
integrity sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=
1812018145

18121-
tmp@^0.0.33:
18146+
tmp@0.0.33, tmp@^0.0.33:
1812218147
version "0.0.33"
1812318148
resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9"
1812418149
integrity sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==

0 commit comments

Comments
 (0)