Skip to content

Commit

Permalink
Polish parser unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Sep 24, 2024
1 parent 97ba50e commit 7bff7e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openrewrite/test/javascript/parser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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 => {
Expand Down

0 comments on commit 7bff7e9

Please sign in to comment.