Skip to content

Commit

Permalink
Merge pull request #2642 from maksimr/chore-file-list-tests
Browse files Browse the repository at this point in the history
chore: Remove unhandled rejection Error from unit tests
  • Loading branch information
dignifiedquire authored Apr 5, 2017
2 parents 332ac4b + 85a1769 commit db9682c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test/unit/file-list.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -766,18 +766,12 @@ describe('FileList', () => {

expect(preprocess).to.not.have.been.called

let called = false

emitter.once('file_list_modified', () => _.defer(() => {
called = true
expect(preprocess).to.have.been.calledOnce
done()
}))

clock.tick(2)
if (!called) {
throw new Error('"file_list_modified" was not emitted')
}
})
})
})
Expand Down

0 comments on commit db9682c

Please sign in to comment.