Skip to content

Commit

Permalink
Fixed broken integration filter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brunocabral88 committed Sep 25, 2022
1 parent 1a864f2 commit 2f4ee48
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions e2e/filter/my-filter.js
Expand Up @@ -11,9 +11,7 @@ module.exports = function (tests) {
return new Promise(resolve => {
setTimeout(() => {
resolve({
filtered: tests
.filter(t => t.indexOf('foo') !== -1)
.map(test => ({message: 'some message', test})),
filtered: tests.filter(t => t.indexOf('foo') !== -1),
});
}, 100);
});
Expand Down
2 changes: 1 addition & 1 deletion e2e/filter/my-secondary-filter.js
Expand Up @@ -9,6 +9,6 @@

module.exports = function (tests) {
return {
filtered: tests.filter(t => t.indexOf('foo') !== -1).map(test => ({test})),
filtered: tests.filter(t => t.indexOf('foo') !== -1),
};
};
4 changes: 1 addition & 3 deletions e2e/filter/my-setup-filter.js
Expand Up @@ -13,9 +13,7 @@ const setupData = {

module.exports = function (tests) {
return {
filtered: tests
.filter(t => t.indexOf(setupData.filterText) !== -1)
.map(test => ({test})),
filtered: tests.filter(t => t.indexOf(setupData.filterText) !== -1),
};
};

Expand Down

0 comments on commit 2f4ee48

Please sign in to comment.