Releases: pretenderjs/pretender
Releases · pretenderjs/pretender
1.3.0
1.2.0
1.1.0
1.0.0
No changes. Just making the API stable.
0.13.0
0.12.0
0.10.1
bump to 0.10.1
Many Maps
This version updates Pretender to allow easier sharing of route maps.
The constructor can now take many maps:
import adminMaps from "testing/maps/admin";
import photoMaps from "testing/maps/photos";
var server = new Pretender(photoMaps, adminMaps);
The map
instance method is also a public API for calling a map later:
The HTTP verb methods can also be called on an instance individually:
var server = new Pretender();
... some setup of stuff ...
import adminMaps from "testing/maps/admin";
var server = new Pretender();
... more setup ...
server.map(adminMaps);