From 8d526b5e295c395e5843218b324207b48dcfbd59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Sat, 6 Jul 2024 20:25:47 +0900 Subject: [PATCH] Update test snapshot --- .../__tests__/__snapshots__/transform.js.snap | 27 ++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/bindings/binding_typescript_wasm/__tests__/__snapshots__/transform.js.snap b/bindings/binding_typescript_wasm/__tests__/__snapshots__/transform.js.snap index 17f5afa833b18..6258875a011e2 100644 --- a/bindings/binding_typescript_wasm/__tests__/__snapshots__/transform.js.snap +++ b/bindings/binding_typescript_wasm/__tests__/__snapshots__/transform.js.snap @@ -2,43 +2,52 @@ exports[`transform in strip-only mode should remove declare enum 1`] = `" "`; -exports[`transform in strip-only mode should remove declare enum 2`] = `" "`; +exports[`transform in strip-only mode should remove declare enum 2`] = ` +" + + " +`; -exports[`transform in strip-only mode should remove declare enum 3`] = `" "`; +exports[`transform in strip-only mode should remove declare enum 3`] = ` +" + + + " +`; exports[`transform in strip-only mode should strip complex expressions 1`] = ` "const foo = { foo: 1 , - bar: "bar" , + bar: \\"bar\\" , } ; - const bar = "bar";" + const bar = \\"bar\\";" `; exports[`transform in strip-only mode should strip nonnull assertions 1`] = ` "const foo = 1 ; - const bar = "bar";" + const bar = \\"bar\\";" `; exports[`transform in strip-only mode should strip satisfies 1`] = ` "const foo = 1 ; - const bar = "bar";" + const bar = \\"bar\\";" `; exports[`transform in strip-only mode should strip type annotations 1`] = ` "const foo = 1; - const bar = "bar";" + const bar = \\"bar\\";" `; exports[`transform in strip-only mode should strip type assertions 1`] = ` "const foo = 1 ; - const bar = "bar";" + const bar = \\"bar\\";" `; exports[`transform in strip-only mode should strip type declarations 1`] = ` "const foo = 1; - const bar = "bar";" + const bar = \\"bar\\";" `; exports[`transform in strip-only mode should throw an error when it encounters a module 1`] = `