Skip to content

Commit

Permalink
Fix test to match the documentation
Browse files Browse the repository at this point in the history
Async methods never throw, they always reject
  • Loading branch information
gcampax committed Oct 1, 2019
1 parent 0d57bfd commit bfa51db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_content.js
Expand Up @@ -102,7 +102,7 @@ async function testGetFileStream() {
}

async function testGetFileStream2() {
assert.throws(() => Content.getStream(platformWithoutContent,
assert.rejects(() => Content.getStream(platformWithoutContent,
'file://' + path.resolve(path.dirname(module.filename), 'test.txt')));
}

Expand Down

0 comments on commit bfa51db

Please sign in to comment.