Skip to content

Delete fixture and get removed fixture function for later restoration

Compare
Choose a tag to compare
@cherifGsoul cherifGsoul released this 01 Feb 20:43
· 33 commits to master since this release

This fixes #34 by returning the replaced/removed fixture that can be restored later.

can.fixture("services/thing", function(){});
// ...
var oldFixtures = fixture("/services/thing", null);