add runtime, property-literals and shebang tests
This commit is contained in:
parent
11d55e661e
commit
f9d14fa2ed
3
test/fixtures/transformation/misc/custom-runtime/actual.js
vendored
Normal file
3
test/fixtures/transformation/misc/custom-runtime/actual.js
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
function foo(...test) {
|
||||
|
||||
}
|
||||
5
test/fixtures/transformation/misc/custom-runtime/expected.js
vendored
Normal file
5
test/fixtures/transformation/misc/custom-runtime/expected.js
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
function foo() {
|
||||
var test = customNamespace.slice.call(arguments);
|
||||
}
|
||||
3
test/fixtures/transformation/misc/custom-runtime/options.json
vendored
Normal file
3
test/fixtures/transformation/misc/custom-runtime/options.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"runtime": "customNamespace"
|
||||
}
|
||||
3
test/fixtures/transformation/misc/property-literals/actual.js
vendored
Normal file
3
test/fixtures/transformation/misc/property-literals/actual.js
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
var obj = {
|
||||
"foobar": "lol"
|
||||
};
|
||||
5
test/fixtures/transformation/misc/property-literals/expected.js
vendored
Normal file
5
test/fixtures/transformation/misc/property-literals/expected.js
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var obj = {
|
||||
foobar: "lol"
|
||||
};
|
||||
3
test/fixtures/transformation/misc/runtime/actual.js
vendored
Normal file
3
test/fixtures/transformation/misc/runtime/actual.js
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
function foo(...test) {
|
||||
|
||||
}
|
||||
5
test/fixtures/transformation/misc/runtime/expected.js
vendored
Normal file
5
test/fixtures/transformation/misc/runtime/expected.js
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
function foo() {
|
||||
var test = to5Runtime.slice.call(arguments);
|
||||
}
|
||||
3
test/fixtures/transformation/misc/runtime/options.json
vendored
Normal file
3
test/fixtures/transformation/misc/runtime/options.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"runtime": true
|
||||
}
|
||||
3
test/fixtures/transformation/misc/shebang/actual.js
vendored
Normal file
3
test/fixtures/transformation/misc/shebang/actual.js
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
foobar();
|
||||
4
test/fixtures/transformation/misc/shebang/expected.js
vendored
Normal file
4
test/fixtures/transformation/misc/shebang/expected.js
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env node
|
||||
"use strict";
|
||||
|
||||
foobar();
|
||||
Loading…
x
Reference in New Issue
Block a user