Last active
November 2, 2017 23:11
-
-
Save dylanjha/1d07f355636e15293df46c9db6781c5d to your computer and use it in GitHub Desktop.
example file for issue
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
const obj = {} | |
function doSomething () { | |
return new Promise((resolve, reject) => { | |
obj.create({ | |
name: 'Dylan', | |
username: 'dylan', | |
photo: 'avatarurl.com', | |
email: '[email protected]' | |
}, | |
{ url: window.location.href }) | |
.then(() => {}) | |
}) | |
} | |
doSomething() |
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
function doSomething () { | |
return new Promise((resolve, reject) => { | |
return reject( // eslint-disable-line prefer-promise-reject-errors | |
'reject this thing' | |
) | |
}) | |
} | |
doSomething() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment