Created
March 27, 2016 04:38
-
-
Save avshabanov/4b7a2a01b64c9d3093e2 to your computer and use it in GitHub Desktop.
Testing embedded (ES2015) promises in jest
This file contains hidden or 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
'use strict'; | |
describe('catalog service test', () => { | |
pit('testing pure promise', () => { | |
return new Promise((resolve) => { | |
resolve("getting something"); | |
}).then(() => { expect(1).toBe(1); }); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment