node-modules/assert-extends

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

assert-extends

NPM version build status Test coverage David deps Known Vulnerabilities npm download

power-assert module extends.

Usage
assert throws with async function
should 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);

License

MIT


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.