Created
May 7, 2018 16:22
-
-
Save joakin/7e20b3fa243f66d68f69fb695fc04a9f to your computer and use it in GitHub Desktop.
QUnit test with promise
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
QUnit.test( 'checking bad reference', function ( assert ) { | |
assert.expect(1); | |
return this.referencesGateway.getReference( '#cite_note-bad', this.page ).catch( function ( err ) { | |
assert.ok( err === ReferencesGateway.ERROR_NOT_EXIST, 'When bad id given false returned.' ); | |
return null; | |
} ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment