lite-fixture

1.0.2 • Public • Published

lite-fixture

Lite test fixture.

Install

npm install lite-fixture

How to use

The sandbox creates an element for testing.
you must call cleanup after test is completed

var elSandbox1 = sandbox(); // create element (id : sandbox)
var elSandbox2 = sandbox("test"); // create element (id : test)
var elSandbox3 = sandbox({
    id: "test",
    style: "display:none"
}); // create element (id : test)
var elSandbox4 = sandbox("test", {
    style: "display:none"
}); // create element (id : test)
 
//...
 
cleanup();
cleanup("test");

Readme

Keywords

Package Sidebar

Install

npm i lite-fixture

Weekly Downloads

85

Version

1.0.2

License

MIT

Last publish

Collaborators

  • sculove