Name: assert-extends
Owner: node_modules
Description: `assert` module extends.
Created: 2016-07-29 09:15:49.0
Updated: 2017-09-25 07:37:50.0
Pushed: 2016-07-29 10:04:20.0
Homepage: null
Size: 7
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
power-assert
module extends.
assert.asyncThrows(block[, error][, message])
mocha --require intelli-espower-loader
to your test scripts.assert.asyncThrows(block[, error][, message])
, return a promiseshould throw error', () => {
turn assert.asyncThrows(function* () {
yield fs.readFile(filepath);
/not exists/);
should throw error', function* () {
eld assert.asyncThrows(function* () {
yield fs.readFile(filepath);
/not exists/);
should throw error', done => {
sert.asyncThrows(function* () {
yield fs.readFile(filepath);
/not exists/).then(done).catch(done);