GitXplorerGitXplorer
I

jest-proof

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
7825b3b22af97a6c0e105dd2f4dae62526196d34

Update actor.test.js

IIanMitchell committed 8 years ago
Unverified
60529443dc9596d64795cfdfc78921b610b157e4

Proof of Concept

committed 8 years ago

README

The README file for this repository.

Bad file names, but essentially this is the structure:

  • Base class (person.js) which has methods / variables intended to be static.
  • Closure (static-person.js) which is intended to create a singleton to persist Base class variables.
  • Consumers (actor.js) that have a dependency on the Closure

When testing Consumer, if you mock out a method you get from the closure, it doesn't reset between tests. How can you discard the mock?