add utility.removeClass tests and move parentPath setting to setContext - fixes #967
This commit is contained in:
3
test/fixtures/transformation/utility.remove-console/nested/actual.js
vendored
Normal file
3
test/fixtures/transformation/utility.remove-console/nested/actual.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
function foo() {
|
||||
console.log("foo");
|
||||
}
|
||||
3
test/fixtures/transformation/utility.remove-console/nested/expected.js
vendored
Normal file
3
test/fixtures/transformation/utility.remove-console/nested/expected.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
function foo() {}
|
||||
3
test/fixtures/transformation/utility.remove-console/options.json
vendored
Normal file
3
test/fixtures/transformation/utility.remove-console/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"optional": ["utility.removeConsole"]
|
||||
}
|
||||
1
test/fixtures/transformation/utility.remove-console/top-level/actual.js
vendored
Normal file
1
test/fixtures/transformation/utility.remove-console/top-level/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
console.log("foo");
|
||||
1
test/fixtures/transformation/utility.remove-console/top-level/expected.js
vendored
Normal file
1
test/fixtures/transformation/utility.remove-console/top-level/expected.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";
|
||||
Reference in New Issue
Block a user