New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ptz-assert

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ptz-assert

ptz-assert is an assertion library for creating less verbose tests that wrappers npm assert

latest
Source
npmnpm
Version
1.6.8
Version published
Maintainers
1
Created
Source

ptz-assert

Build Status NPM codecov.io Dependency Status bitHound Score License

ptz-assert is a wrapper for npm assert

Be welcome to learn, help and play!!!

Install

Install with npm:

    $ npm install ptz-assert --save

or clone from github:

    $ git clone https://github.com/angeloocana/ptz-assert.git

Setup

    $ npm install 
    $ typings install

*Add to your typings/index.d.ts

/// <reference path="../node_modules/ptz-assert/src/typings/index.d.ts" />

Test

    $ npm test

Usage


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');

Keywords

polutz

FAQs

Package last updated on 29 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts