Skip to content

Commit

Permalink
fix a flaky test in ncp.test.js (#737)
Browse files Browse the repository at this point in the history
  • Loading branch information
nacd authored Jan 30, 2020
1 parent d6478d2 commit 76e48cb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/copy/__tests__/ncp/ncp.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ describe('ncp', () => {
for (const fileName in files) {
const curFile = files[fileName]
if (curFile instanceof Object) {
return filter(curFile)
}

if (fileName.substr(fileName.length - 1) === 'a') {
filter(curFile)
} else if (fileName.substr(fileName.length - 1) === 'a') {
delete files[fileName]
}
}
Expand Down

0 comments on commit 76e48cb

Please sign in to comment.