aboutsummaryrefslogtreecommitdiff
path: root/test/mocha
diff options
context:
space:
mode:
authorLucas Wiener <lucas@wiener.se>2016-07-28 09:30:12 +0200
committerRichard van Velzen <rvanvelzen1@gmail.com>2016-08-14 21:40:14 +0200
commit38756b1f269fec9fc7f13b82d014478662d00c4d (patch)
tree95ac3d42539c995d046cecb42c1b21b8b7f9cf36 /test/mocha
parent85a09fc3b69cd4ea4b01151e235815b0796373f3 (diff)
downloadtracifyjs-38756b1f269fec9fc7f13b82d014478662d00c4d.tar.gz
tracifyjs-38756b1f269fec9fc7f13b82d014478662d00c4d.zip
Moved test input files to test/input.
Diffstat (limited to 'test/mocha')
-rw-r--r--test/mocha/input/issue-1236/simple.js8
-rw-r--r--test/mocha/input/issue-1236/simple.js.map8
-rw-r--r--test/mocha/minify.js4
3 files changed, 2 insertions, 18 deletions
diff --git a/test/mocha/input/issue-1236/simple.js b/test/mocha/input/issue-1236/simple.js
deleted file mode 100644
index 8bdd7f26..00000000
--- a/test/mocha/input/issue-1236/simple.js
+++ /dev/null
@@ -1,8 +0,0 @@
-"use strict";
-
-var foo = function foo(x) {
- return "foo " + x;
-};
-console.log(foo("bar"));
-
-//# sourceMappingURL=simple.js.map
diff --git a/test/mocha/input/issue-1236/simple.js.map b/test/mocha/input/issue-1236/simple.js.map
deleted file mode 100644
index 28989e0f..00000000
--- a/test/mocha/input/issue-1236/simple.js.map
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "version": 3,
- "sources": ["index.js"],
- "names": [],
- "mappings": ";;AAAA,IAAI,MAAM,SAAN,GAAM;AAAA,SAAK,SAAS,CAAd;AAAA,CAAV;AACA,QAAQ,GAAR,CAAY,IAAI,KAAJ,CAAZ",
- "file": "simple.js",
- "sourcesContent": ["let foo = x => \"foo \" + x;\nconsole.log(foo(\"bar\"));"]
-}
diff --git a/test/mocha/minify.js b/test/mocha/minify.js
index b6e7a23f..2adbadcb 100644
--- a/test/mocha/minify.js
+++ b/test/mocha/minify.js
@@ -62,9 +62,9 @@ describe("minify", function() {
describe("inSourceMap", function() {
it("Should read the given string filename correctly when sourceMapIncludeSources is enabled (#1236)", function() {
- var result = Uglify.minify('./test/mocha/input/issue-1236/simple.js', {
+ var result = Uglify.minify('./test/input/issue-1236/simple.js', {
outSourceMap: "simple.js.min.map",
- inSourceMap: "./test/mocha/input/issue-1236/simple.js.map",
+ inSourceMap: "./test/input/issue-1236/simple.js.map",
sourceMapIncludeSources: true
});