From 51596a44dfd444a977596c3f92e519a060cc1d21 Mon Sep 17 00:00:00 2001 From: Elliot Huffman Date: Sun, 16 Jun 2024 11:49:55 -0400 Subject: [PATCH] Fix Unit Test The strict mode directive is now no longer generated by uglify.JS. Update expected test results to match the new behavior. --- ...h_a_short_circuit_are_correctly_stripped_by_UglifyJS.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/features/generated_type_guards_with_a_short_circuit_are_correctly_stripped_by_UglifyJS.test.ts b/tests/features/generated_type_guards_with_a_short_circuit_are_correctly_stripped_by_UglifyJS.test.ts index 3bd3ef9..de4e820 100644 --- a/tests/features/generated_type_guards_with_a_short_circuit_are_correctly_stripped_by_UglifyJS.test.ts +++ b/tests/features/generated_type_guards_with_a_short_circuit_are_correctly_stripped_by_UglifyJS.test.ts @@ -13,7 +13,7 @@ testProcessProject( }, { 'test.ts': null, - 'test.guard.ts': `"use strict";function isFoo(o){return!0}Object.defineProperty(exports,"__esModule",{value:!0}),exports.isFoo=void 0,exports.isFoo=isFoo;`, + 'test.guard.ts': `function isFoo(o){return!0}Object.defineProperty(exports,"__esModule",{value:!0}),exports.isFoo=void 0,exports.isFoo=isFoo;`, }, { minifyOptions: {