Skip to content

Commit 266a40d

Browse files
WliuWliu
Wliu
authored and
Wliu
committed
📝
1 parent 6852fe8 commit 266a40d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/history-manager-spec.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@ describe("HistoryManager", () => {
183183
describe("saveState", () => {
184184
let savedHistory
185185
beforeEach(() => {
186+
// historyManager.saveState is spied on globally to prevent specs from
187+
// modifying the shared project history. Since these tests depend on
188+
// saveState, we unspy it but in turn spy on the state store instead
189+
// so that no data is actually stored to it.
186190
jasmine.unspy(historyManager, 'saveState')
187191

188192
spyOn(historyManager.stateStore, 'save').andCallFake((name, history) => {

0 commit comments

Comments
 (0)