jasmine-es6-spies
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i jasmine-es6-spies

Weekly Downloads

446

Version

0.0.4

License

MIT

Last publish

Collaborators

  • drtimwright