From 7bff7e9768c77c8f1352a71644fe220bd2eca36a Mon Sep 17 00:00:00 2001 From: Knut Wannheden Date: Tue, 24 Sep 2024 15:11:16 +0200 Subject: [PATCH] Polish parser unit tests --- openrewrite/test/javascript/parser.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openrewrite/test/javascript/parser.test.ts b/openrewrite/test/javascript/parser.test.ts index 919caca6..812f982e 100644 --- a/openrewrite/test/javascript/parser.test.ts +++ b/openrewrite/test/javascript/parser.test.ts @@ -31,7 +31,7 @@ describe('LST mapping', () => { test('parseInputs', () => { rewriteRun( - javaScript('1', (sourceFile) => { + javaScript('1', sourceFile => { expect(sourceFile).toBeDefined(); expect(sourceFile.statements).toHaveLength(1); expect(sourceFile.statements[0]).toBeInstanceOf(JS.ExpressionStatement); @@ -46,7 +46,7 @@ describe('LST mapping', () => { const c = 1; /* c1*/ /*c2 */ const d = 1; - `, (cu) => { + `, cu => { expect(cu).toBeDefined(); expect(cu.statements).toHaveLength(2); cu.statements.forEach(statement => {