Created
May 15, 2020 06:52
-
-
Save kaddopur/bf7ecabffb9bae5e2d348d018ffc0b25 to your computer and use it in GitHub Desktop.
test diff
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
- await CrumbService.read(mockReq, 'CrumbService', { foo: 'foo' }, {}, callback); | |
+ await new Promise(resolve => | |
+ CrumbService.read(mockReq, 'CrumbService', { foo: 'foo' }, {}, (...args) => { | |
+ callback(...args); | |
+ resolve(); | |
+ }) | |
+ ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment