diff --git a/test/sourcemaps/samples/existing-external-sourcemaps-combined/_config.js b/test/sourcemaps/samples/existing-external-sourcemaps-combined/_config.js deleted file mode 100644 index a377059f3ad..00000000000 --- a/test/sourcemaps/samples/existing-external-sourcemaps-combined/_config.js +++ /dev/null @@ -1,9 +0,0 @@ -const assert = require('assert'); - -module.exports = { - description: 'combines existing inline sourcemap comments into one', - async test(code) { - assert.doesNotMatch(code, /sourceMappingURL=main\.js\.map/); - assert.doesNotMatch(code, /sourceMappingURL=other\.js\.map/); - }, -}; diff --git a/test/sourcemaps/samples/existing-external-sourcemaps-combined/main.js b/test/sourcemaps/samples/existing-external-sourcemaps-combined/main.js deleted file mode 100644 index 9f837dbfb00..00000000000 --- a/test/sourcemaps/samples/existing-external-sourcemaps-combined/main.js +++ /dev/null @@ -1,4 +0,0 @@ -import value from "./other"; -const s = `other: ${value}`; -console.log(s); -//# sourceMappingURL=main.js.map \ No newline at end of file diff --git a/test/sourcemaps/samples/existing-external-sourcemaps-combined/main.js.map b/test/sourcemaps/samples/existing-external-sourcemaps-combined/main.js.map deleted file mode 100644 index 869d5b39321..00000000000 --- a/test/sourcemaps/samples/existing-external-sourcemaps-combined/main.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"main.js","sourceRoot":"","sources":["main.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,MAAM,CAAC,GAAW,UAAU,KAAK,EAAE,CAAC;AAEpC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/test/sourcemaps/samples/existing-external-sourcemaps-combined/other.js b/test/sourcemaps/samples/existing-external-sourcemaps-combined/other.js deleted file mode 100644 index 692376e46d9..00000000000 --- a/test/sourcemaps/samples/existing-external-sourcemaps-combined/other.js +++ /dev/null @@ -1,3 +0,0 @@ -const x = "foo"; -export default x; -//# sourceMappingURL=other.js.map \ No newline at end of file diff --git a/test/sourcemaps/samples/existing-external-sourcemaps-combined/other.js.map b/test/sourcemaps/samples/existing-external-sourcemaps-combined/other.js.map deleted file mode 100644 index 26062a454fa..00000000000 --- a/test/sourcemaps/samples/existing-external-sourcemaps-combined/other.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"other.js","sourceRoot":"","sources":["other.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,GAAW,KAAK,CAAC;AACxB,eAAe,CAAC,CAAC"} \ No newline at end of file diff --git a/test/sourcemaps/samples/existing-inline-sourcemaps-combined/_config.js b/test/sourcemaps/samples/existing-inline-sourcemaps-combined/_config.js index d77fb87c969..2457b5690f0 100644 --- a/test/sourcemaps/samples/existing-inline-sourcemaps-combined/_config.js +++ b/test/sourcemaps/samples/existing-inline-sourcemaps-combined/_config.js @@ -1,8 +1,8 @@ const assert = require('assert'); module.exports = { - description: 'combines existing sourcemap files into one', + description: 'removes existing inline sourcemaps', async test(code) { - assert.doesNotMatch(code, /sourceMappingURL=data:/); - }, + assert.strictEqual(code.indexOf('sourceMappingURL'), -1); + } };