1.0.1 • Published 8 years ago

eztest v1.0.1

Weekly downloads
1
License
CC-BY-4.0
Repository
github
Last release
8 years ago

eztest.js

Minimalistic Unit Testing for JavaScript

About

eztest allows quickly-written tests without any special syntax, vocab, or conventions.

You just write simple test expressions, with and optional label, one-per-line or delimted by ~.

Usage

browsers: <script src=eztest.js></script> node.js: npm install eztest

Syntax

eztest("1_and_2_make_3: 1+2 == 3") == [{
  name: 	"1 and 2 make 3", // label text or "untitled"
  result: 	true,		// returned value
  bool: 	true,		// value is truthy (for collating)
  test: 	"1+2==3"	// the code that was run
}];
1.0.1

8 years ago

1.0.0

8 years ago