jasmine-es6-spies
v0.0.4
Published
Helper functions to spy on ES6 classes
Downloads
2,321
Readme
jasmine-es6-spies
ES6 spies for Jasmine
Use it like this:
import {spyOnClass} from "jasmine-es6-spies";
class ClassName {
method() {}
}
var spyObj = spyOnClass(ClassName);
The spyObj variable will contain a jasmine spy object with the same methods as the class. So in this case, one method called "method".
It's on GitHub at https://github.com/drtimwright/jasmine-es6-spies