Skip to content

Commit 2f4ee48

Browse files
committed
Fixed broken integration filter tests
1 parent 1a864f2 commit 2f4ee48

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

e2e/filter/my-filter.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ module.exports = function (tests) {
1111
return new Promise(resolve => {
1212
setTimeout(() => {
1313
resolve({
14-
filtered: tests
15-
.filter(t => t.indexOf('foo') !== -1)
16-
.map(test => ({message: 'some message', test})),
14+
filtered: tests.filter(t => t.indexOf('foo') !== -1),
1715
});
1816
}, 100);
1917
});

e2e/filter/my-secondary-filter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99

1010
module.exports = function (tests) {
1111
return {
12-
filtered: tests.filter(t => t.indexOf('foo') !== -1).map(test => ({test})),
12+
filtered: tests.filter(t => t.indexOf('foo') !== -1),
1313
};
1414
};

e2e/filter/my-setup-filter.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ const setupData = {
1313

1414
module.exports = function (tests) {
1515
return {
16-
filtered: tests
17-
.filter(t => t.indexOf(setupData.filterText) !== -1)
18-
.map(test => ({test})),
16+
filtered: tests.filter(t => t.indexOf(setupData.filterText) !== -1),
1917
};
2018
};
2119

0 commit comments

Comments
 (0)