0.0.3 • Published 8 years ago

fixture2 v0.0.3

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

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"})