Skip to content

Instantly share code, notes, and snippets.

@NickLydon
Last active March 23, 2016 00:26
Show Gist options
  • Save NickLydon/1b9c56d0c70e03411021 to your computer and use it in GitHub Desktop.
Save NickLydon/1b9c56d0c70e03411021 to your computer and use it in GitHub Desktop.
asynchronous test failing with bluebird
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