add api tests

This commit is contained in:
Sebastian McKenzie 2014-09-29 01:02:39 +10:00
parent 0736225bf9
commit 02b43a7bcb
6 changed files with 29 additions and 0 deletions

5
test/fixtures/api/blacklist/actual.js vendored Normal file
View File

@ -0,0 +1,5 @@
class Test {
constructor() {
arr.map(x => x * x);
}
}

View File

@ -0,0 +1,6 @@
var Test = function () {
function Test() {
arr.map(x => x * x);
}
return Test;
}();

View File

@ -0,0 +1,3 @@
{
"blacklist": ["arrowFunctions"]
}

5
test/fixtures/api/whitelist/actual.js vendored Normal file
View File

@ -0,0 +1,5 @@
class Test {
constructor() {
arr.map(x => x * x);
}
}

View File

@ -0,0 +1,7 @@
class Test {
constructor() {
arr.map(function (x) {
return x * x;
});
}
}

View File

@ -0,0 +1,3 @@
{
"whitelist": ["arrowFunctions"]
}