@contasystemer/angularjs-assert

1.0.4 • Public • Published

Description

AngularJS assert module provides a set of assertion functions for verifying invariants.

Install

Include the file is HMTL

<script src="/node_modules/@contasystemer/angularjs-assert/src/angularjs-assert.js"></script>

or require the file

require('@contasystemer/angularjs-assert');

Usage

csAssert.ok(angular.isObject(result), 'Result should be an object');

It's an equvivalent of:

if (angular.isObject(result) === false) {
    throw new Error('Result should be an object');
}

/@contasystemer/angularjs-assert/

    Package Sidebar

    Install

    npm i @contasystemer/angularjs-assert

    Weekly Downloads

    0

    Version

    1.0.4

    License

    BSD-3-Clause

    Unpacked Size

    9.81 kB

    Total Files

    11

    Last publish

    Collaborators

    • akoppela
    • tbjornli