This commit is contained in:
Wliu
2017-12-05 11:37:04 +01:00
parent 6852fe8ee5
commit 266a40d914

View File

@@ -183,6 +183,10 @@ describe("HistoryManager", () => {
describe("saveState", () => {
let savedHistory
beforeEach(() => {
// historyManager.saveState is spied on globally to prevent specs from
// modifying the shared project history. Since these tests depend on
// saveState, we unspy it but in turn spy on the state store instead
// so that no data is actually stored to it.
jasmine.unspy(historyManager, 'saveState')
spyOn(historyManager.stateStore, 'save').andCallFake((name, history) => {