fix up test styling and add use-strict declarator
This commit is contained in:
2
test/fixtures/syntax/api/blacklist/actual.js
vendored
2
test/fixtures/syntax/api/blacklist/actual.js
vendored
@@ -1,5 +1,5 @@
|
||||
class Test {
|
||||
constructor() {
|
||||
arr.map(x => x * x);
|
||||
arr.map(x => x * x);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
var Test = function () {
|
||||
"use strict";
|
||||
|
||||
var Test = function() {
|
||||
var Test = function Test() {
|
||||
arr.map(x => x * x);
|
||||
};
|
||||
|
||||
return Test;
|
||||
}();
|
||||
}();
|
||||
0
test/fixtures/syntax/api/blacklist/untitled
vendored
Normal file
0
test/fixtures/syntax/api/blacklist/untitled
vendored
Normal file
2
test/fixtures/syntax/api/whitelist/actual.js
vendored
2
test/fixtures/syntax/api/whitelist/actual.js
vendored
@@ -1,5 +1,5 @@
|
||||
class Test {
|
||||
constructor() {
|
||||
arr.map(x => x * x);
|
||||
arr.map(x => x * x);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
"use strict";
|
||||
|
||||
class Test {
|
||||
constructor() {
|
||||
arr.map(function (x) {
|
||||
arr.map(function(x) {
|
||||
return x * x;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user