Last active
March 23, 2016 00:26
-
-
Save NickLydon/1b9c56d0c70e03411021 to your computer and use it in GitHub Desktop.
asynchronous test failing with bluebird
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('bluebird', () => { | |
const getPromise = () => | |
Promise.resolve(true); | |
it('should allow synchronous behaviour', () => { | |
let set = false; | |
getPromise() | |
.then(value => { | |
set = value; | |
}); | |
expect(set).toBe(true); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment