Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felixge/simplicityjs
https://github.com/felixge/simplicityjs
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/felixge/simplicityjs
- Owner: felixge
- Created: 2009-11-04T00:11:22.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2009-11-04T09:46:32.000Z (about 15 years ago)
- Last Synced: 2024-12-18T05:44:15.379Z (7 days ago)
- Language: JavaScript
- Homepage:
- Size: 78.1 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
Simplicity.js
=============Simplicity is a tiny wrapper for mjsunit that helps writing asynchronous unit tests with node.js. In particular it makes it easy to organize your test expectations and show you which ones did not complete.
Install
-------Put lib/simplicty.js in your test folder or make sure it can be reached from your require.paths.
Usage
-----process.mixin(require('simplicity'));
expect('a test that finishes', function(ok) {
setTimeout(function() {
ok();
}, 100);
});expect('a test that finishes in < 200ms', function(ok) {
setTimeout(function() {
ok();
}, 100);
}).timeout(200);