fixture2

0.0.3 • Public • Published

fixture2

Microlib for create fixtures for unit-testing

npm version Build Status Coverage Status

Install

npm install fixture2 --save-dev

Usage

var fixtures = require('fixture2');
//create collection
var f = fixtures();
//create string fixture
f("fix1");
//get value of existing fixture
f("fix1");
//set value by type
f("fix1", "string");
f("fix1", "number");
f("fix1", "float");
f("fix1", "int");
//set value by value
f("fix", "another value")
f("fix", {field: "value"})

Readme

Keywords

none

Package Sidebar

Install

npm i fixture2

Weekly Downloads

4

Version

0.0.3

License

ISC

Last publish

Collaborators

  • arvitaly