New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

testable-error

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

testable-error

Create testable javascript errors

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

testable-error

Create testable javascript errors

Install

Install with npm

$ npm i testable-error --save-dev

Usage

const createTestableErrorClass = require('testable-error');

const MySimpleError = createTestableErrorClass('MySimpleError')

expect(function(){
  throw new MySimpleError('oh no!')
}).to.throw(MySimpleError)
// âś” ok

## Running tests

Install dev dependencies:

```sh
$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

License

Copyright © 2016 Licensed under the MIT license.

This file was generated by readme-generator on November 02, 2016.

FAQs

Package last updated on 19 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts