1.6.8 • Published 9 years ago
ptz-assert v1.6.8
ptz-assert
ptz-assert is a wrapper for npm assert
Be welcome to learn, help and play!!!
Install
Install with npm:
$ npm install ptz-assert --saveor clone from github:
$ git clone https://github.com/angeloocana/ptz-assert.gitSetup
$ npm install
$ typings install*Add to your typings/index.d.ts
/// <reference path="../node_modules/ptz-assert/src/typings/index.d.ts" />Test
$ npm testUsage
import { ok, notOk, equal, notEqual, deepEqual, notDeepEqual, contains, notEmptyString, notEmptyArray, emptyArray } from "ptz-assert";
let obj = {test:"ok, i'm a valid obj"};
ok(obj);
//or test with optional message
ok(obj, msg);
var actual = 'ab';
var expected = 'ab';
equal(actual, expected);
var list = ['a', 'b'];
contains(list, 'a');1.6.8
9 years ago
1.6.7
9 years ago
1.6.6
9 years ago
1.6.5
9 years ago
1.6.4
9 years ago
1.6.3
9 years ago
1.6.2
9 years ago
1.6.1
9 years ago
1.6.0
9 years ago
1.5.0
9 years ago
1.4.0
9 years ago
1.3.1
9 years ago
1.3.0
9 years ago
1.2.0
9 years ago
1.1.0
10 years ago
1.0.8
10 years ago
1.0.7
10 years ago
1.0.6
10 years ago
1.0.4
10 years ago
1.0.3
10 years ago
1.0.2
10 years ago
1.0.1
10 years ago
1.0.0
10 years ago