refactor(stateSpec): add spy on .replace method
Merge pull request #1103 from a8m/master

refactor(stateSpec): add spy on .replace method