add api tests
This commit is contained in:
parent
0736225bf9
commit
02b43a7bcb
5
test/fixtures/api/blacklist/actual.js
vendored
Normal file
5
test/fixtures/api/blacklist/actual.js
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
class Test {
|
||||||
|
constructor() {
|
||||||
|
arr.map(x => x * x);
|
||||||
|
}
|
||||||
|
}
|
||||||
6
test/fixtures/api/blacklist/expected.js
vendored
Normal file
6
test/fixtures/api/blacklist/expected.js
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
var Test = function () {
|
||||||
|
function Test() {
|
||||||
|
arr.map(x => x * x);
|
||||||
|
}
|
||||||
|
return Test;
|
||||||
|
}();
|
||||||
3
test/fixtures/api/blacklist/options.json
vendored
Normal file
3
test/fixtures/api/blacklist/options.json
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"blacklist": ["arrowFunctions"]
|
||||||
|
}
|
||||||
5
test/fixtures/api/whitelist/actual.js
vendored
Normal file
5
test/fixtures/api/whitelist/actual.js
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
class Test {
|
||||||
|
constructor() {
|
||||||
|
arr.map(x => x * x);
|
||||||
|
}
|
||||||
|
}
|
||||||
7
test/fixtures/api/whitelist/expected.js
vendored
Normal file
7
test/fixtures/api/whitelist/expected.js
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
class Test {
|
||||||
|
constructor() {
|
||||||
|
arr.map(function (x) {
|
||||||
|
return x * x;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
3
test/fixtures/api/whitelist/options.json
vendored
Normal file
3
test/fixtures/api/whitelist/options.json
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"whitelist": ["arrowFunctions"]
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user