Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

dominictarr/asynct

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#asynct

a simple asyncronous test framework for nodejs.

(mostly) api compatible with /~https://github.com/bentomas/node-async-testing and /~https://github.com/caolan/nodeunit

##install

npm install asynct

##a test

//test.js
exports ['test 1'] = function (test) {

  //some test assertions here
  
  test.done() //or test.finish()

}

exports.__setup = function (test) {
  //called before all tests (optional)
  test.done()
}

exports.__teardown = function (test) {
  //called after all tests, even if there is an error (optional)
  //test.done() not necessary in teardown
}

run it:

asynct test.js

##tests

tests are in seperate repo. /~https://github.com/dominictarr/asynct_tests

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published