Features
- Extensible
- Fast
- Provides really nice error messages
- Helps you if you misspells assertions
- Compatible with all test frameworks.
- Node.JS ready (require('unexpected'))
- Supports asynchronous assertions using promises
- Single global with no prototype extensions or shims.
- Cross-browser: works on Chrome, Firefox, Safari, Opera, IE11, Edge
Node
npm install --save-dev unexpected
var expect = require('unexpected');
链接: https://fly63.com/nav/318