November: Procrastination Month

npm

npm’s 2019 JavaScript ecosystem survey analysis is now available! Get your copy here »

truffle-expect

0.0.7 • Public • Published

truffle-expect

Simple module for ensuring expected parameters exist

install

$ npm install truffle-expect

Usage

var expect = require("truffle-expect");
 
// The object you're testing
var options = {
  example: "exists"
  another: 5
};
 
expect.options(options, ["example", "another"]); // does nothing
expect.options(options, ["example", "another", "some_other_key"]); // errors because options["some_other_key"] is undefined

install

npm i truffle-expect

Downloadsweekly downloads

2,331

version

0.0.7

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability