[Edit] Final two actions now use finish()

This commit is contained in:
Alex M
2016-09-13 22:35:11 +03:00
parent 79b16ddda6
commit 4382745012
4 changed files with 8 additions and 8 deletions

View File

@@ -103,7 +103,7 @@ define(
[
"edit",
"save",
"cancel"
"finish"
]
);
@@ -178,10 +178,10 @@ define(
expect(capabilities.editor.save).toHaveBeenCalled();
});
it("to cancel the edit if user cancels dialog", function () {
it("to finish the edit if user cancels dialog", function () {
action.perform();
promise.then.mostRecentCall.args[1]();
expect(capabilities.editor.cancel).toHaveBeenCalled();
expect(capabilities.editor.finish).toHaveBeenCalled();
});
});
});