Skip to content

Commit 06b4480

Browse files
test: fix
1 parent 199749f commit 06b4480

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/stringifyLocal.test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ describe("stringifyLocal", () => {
1414
});
1515

1616
it("function", async () => {
17-
const testFn = () => "classA";
17+
// eslint-disable-next-line func-style
18+
const testFn = function testFn() {
19+
return "classA";
20+
};
1821

1922
expect(stringifyLocal(testFn)).toBe(
2023
'function testFn() {\n return "classA";\n }',

0 commit comments

Comments
 (0)