mirror of
https://github.com/flynx/test.js.git
synced 2025-10-28 10:20:09 +00:00
minor tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
17de67ba26
commit
b1ce4849fc
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ig-test",
|
"name": "ig-test",
|
||||||
"version": "1.4.6",
|
"version": "1.4.7",
|
||||||
"description": "experimental test runner....",
|
"description": "experimental test runner....",
|
||||||
"main": "test.js",
|
"main": "test.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|||||||
2
test.js
2
test.js
@ -186,7 +186,7 @@ object.Constructor('Assert', {
|
|||||||
|
|
||||||
// assertion API...
|
// assertion API...
|
||||||
__call__: function(_, value, msg, ...args){
|
__call__: function(_, value, msg, ...args){
|
||||||
msg = msg || ''
|
msg = msg || (value + '')
|
||||||
// stats...
|
// stats...
|
||||||
var stats = this.stats
|
var stats = this.stats
|
||||||
stats.assertions = (stats.assertions || 0) + 1
|
stats.assertions = (stats.assertions || 0) + 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user