From 2a74c10dc17b4780cc90465a8692fe6fd4244f1b Mon Sep 17 00:00:00 2001 From: Knut Wannheden Date: Sat, 28 Sep 2024 09:47:44 +0200 Subject: [PATCH] Polish a few tests --- .../test/javascript/parser/variableDeclarations.test.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/openrewrite/test/javascript/parser/variableDeclarations.test.ts b/openrewrite/test/javascript/parser/variableDeclarations.test.ts index 0681ca4..865da26 100644 --- a/openrewrite/test/javascript/parser/variableDeclarations.test.ts +++ b/openrewrite/test/javascript/parser/variableDeclarations.test.ts @@ -1,5 +1,5 @@ import * as J from "../../../dist/java/tree"; -import {connect, disconnect, rewriteRun, rewriteRunWithOptions, typeScript} from '../testHarness'; +import {connect, disconnect, rewriteRun, typeScript} from '../testHarness'; describe('variable declaration mapping', () => { beforeAll(() => connect()); @@ -28,9 +28,7 @@ describe('variable declaration mapping', () => { }); test('const2', () => { - rewriteRunWithOptions( - // FIXME not quite there yet - {validatePrintIdempotence: false, allowUnknowns: true}, + rewriteRun( typeScript( //language=javascript `