From 47e712d2f5b096014c6b7895c9f17c565911954d Mon Sep 17 00:00:00 2001 From: Denis Bardadym Date: Thu, 22 Dec 2016 13:31:45 +0300 Subject: [PATCH] Failling test for #1104 --- .../removes-existing-sourcemap-comments/_expected/amd.js | 6 +++++- .../removes-existing-sourcemap-comments/_expected/cjs.js | 6 +++++- .../removes-existing-sourcemap-comments/_expected/es.js | 6 +++++- .../removes-existing-sourcemap-comments/_expected/iife.js | 6 +++++- .../removes-existing-sourcemap-comments/_expected/umd.js | 6 +++++- test/form/removes-existing-sourcemap-comments/main.js | 6 +++++- 6 files changed, 30 insertions(+), 6 deletions(-) diff --git a/test/form/removes-existing-sourcemap-comments/_expected/amd.js b/test/form/removes-existing-sourcemap-comments/_expected/amd.js index b89e399..f2854e1 100644 --- a/test/form/removes-existing-sourcemap-comments/_expected/amd.js +++ b/test/form/removes-existing-sourcemap-comments/_expected/amd.js @@ -4,6 +4,10 @@ define(function () { 'use strict'; return 42; }; - console.log( foo() ); + var str = ` + //# sourceMappingURL=main.js.map + `; + + console.log( foo(str) ); }); diff --git a/test/form/removes-existing-sourcemap-comments/_expected/cjs.js b/test/form/removes-existing-sourcemap-comments/_expected/cjs.js index 1152d76..7f1d978 100644 --- a/test/form/removes-existing-sourcemap-comments/_expected/cjs.js +++ b/test/form/removes-existing-sourcemap-comments/_expected/cjs.js @@ -4,4 +4,8 @@ var foo = function () { return 42; }; -console.log( foo() ); +var str = ` +//# sourceMappingURL=main.js.map +`; + +console.log( foo(str) ); diff --git a/test/form/removes-existing-sourcemap-comments/_expected/es.js b/test/form/removes-existing-sourcemap-comments/_expected/es.js index 0ef1000..42c02fc 100644 --- a/test/form/removes-existing-sourcemap-comments/_expected/es.js +++ b/test/form/removes-existing-sourcemap-comments/_expected/es.js @@ -2,4 +2,8 @@ var foo = function () { return 42; }; -console.log( foo() ); +var str = ` +//# sourceMappingURL=main.js.map +`; + +console.log( foo(str) ); diff --git a/test/form/removes-existing-sourcemap-comments/_expected/iife.js b/test/form/removes-existing-sourcemap-comments/_expected/iife.js index cac12fb..f898c02 100644 --- a/test/form/removes-existing-sourcemap-comments/_expected/iife.js +++ b/test/form/removes-existing-sourcemap-comments/_expected/iife.js @@ -5,6 +5,10 @@ return 42; }; - console.log( foo() ); + var str = ` + //# sourceMappingURL=main.js.map + `; + + console.log( foo(str) ); }()); diff --git a/test/form/removes-existing-sourcemap-comments/_expected/umd.js b/test/form/removes-existing-sourcemap-comments/_expected/umd.js index 9a6706d..cb202ab 100644 --- a/test/form/removes-existing-sourcemap-comments/_expected/umd.js +++ b/test/form/removes-existing-sourcemap-comments/_expected/umd.js @@ -8,6 +8,10 @@ return 42; }; - console.log( foo() ); + var str = ` + //# sourceMappingURL=main.js.map + `; + + console.log( foo(str) ); }))); diff --git a/test/form/removes-existing-sourcemap-comments/main.js b/test/form/removes-existing-sourcemap-comments/main.js index 3c48af8..5d93818 100644 --- a/test/form/removes-existing-sourcemap-comments/main.js +++ b/test/form/removes-existing-sourcemap-comments/main.js @@ -1,5 +1,9 @@ import foo from './foo'; -console.log( foo() ); +var str = ` +//# sourceMappingURL=main.js.map +`; + +console.log( foo(str) ); //# sourceMappingURL=main.js.map