restructure test directory
This commit is contained in:
1
test/fixtures/syntax/array-comprehension/multiple-if/actual.js
vendored
Normal file
1
test/fixtures/syntax/array-comprehension/multiple-if/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
var seattlers = [for (customers of countries) for (c of customers) if (c.city == "Seattle") { name: c.name, age: c.age }];
|
||||
14
test/fixtures/syntax/array-comprehension/multiple-if/expected.js
vendored
Normal file
14
test/fixtures/syntax/array-comprehension/multiple-if/expected.js
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
var seattlers = function () {
|
||||
var _arr = [];
|
||||
countries.forEach(function (customers) {
|
||||
customers.forEach(function (c) {
|
||||
if (c.city == "Seattle") {
|
||||
_arr.push({
|
||||
name: c.name,
|
||||
age: c.age
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
return _arr;
|
||||
}();
|
||||
Reference in New Issue
Block a user