Skip to content

Commit 0a371f5

Browse files
committed
lint
1 parent f38a724 commit 0a371f5

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

tests/ts/test/utils/index.test.ts

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,34 @@ import { Imports as ASImports } from "@assemblyscript/loader";
33

44
const mockWriteFile = jest.fn();
55
jest.unstable_mockModule("node:fs", () => ({
6-
writeFileSync: mockWriteFile,
6+
writeFileSync: mockWriteFile,
77
}));
88

99
const { supplyDefaultFunction } = await import("../../../../src/utils/index.js");
1010

1111
describe("supplyDefaultFunction", () => {
12-
test("supplyTest", () => {
13-
const mockImportList: WebAssembly.ModuleImportDescriptor[] = [
14-
{ kind: "function", module: "myenv", name: "processEvent" },
15-
{ kind: "function", module: "externalMath", name: "add" },
16-
{ kind: "function", module: "system", name: "getStatus" },
17-
{ kind: "function", module: "logger", name: "logWarning" },
18-
{ kind: "function", module: "customOps", name: "combineValues" },
19-
];
12+
test("supplyTest", () => {
13+
const mockImportList: WebAssembly.ModuleImportDescriptor[] = [
14+
{ kind: "function", module: "myenv", name: "processEvent" },
15+
{ kind: "function", module: "externalMath", name: "add" },
16+
{ kind: "function", module: "system", name: "getStatus" },
17+
{ kind: "function", module: "logger", name: "logWarning" },
18+
{ kind: "function", module: "customOps", name: "combineValues" },
19+
];
2020

21-
const mockImportObject: ASImports = {
22-
myenv: {},
23-
externalMath: {},
24-
system: {},
25-
logger: {},
26-
customOps: {},
27-
};
21+
const mockImportObject: ASImports = {
22+
myenv: {},
23+
externalMath: {},
24+
system: {},
25+
logger: {},
26+
customOps: {},
27+
};
2828

29-
supplyDefaultFunction(mockImportList, mockImportObject);
29+
supplyDefaultFunction(mockImportList, mockImportObject);
3030

31-
expect(typeof mockImportObject["myenv"]?.["processEvent"]).toBe("function");
32-
expect(typeof mockImportObject["system"]?.["getStatus"]).toBe("function");
33-
expect(typeof mockImportObject["logger"]?.["logWarning"]).toBe("function");
34-
expect(typeof mockImportObject["customOps"]?.["combineValues"]).toBe("function");
35-
});
36-
});
31+
expect(typeof mockImportObject["myenv"]?.["processEvent"]).toBe("function");
32+
expect(typeof mockImportObject["system"]?.["getStatus"]).toBe("function");
33+
expect(typeof mockImportObject["logger"]?.["logWarning"]).toBe("function");
34+
expect(typeof mockImportObject["customOps"]?.["combineValues"]).toBe("function");
35+
});
36+
});

0 commit comments

Comments
 (0)