History service gets core piskelController from public piskelController

This commit is contained in:
juliandescottes
2017-01-14 21:58:37 +01:00
parent 8806c41892
commit 94b1a1df4a
5 changed files with 35 additions and 6 deletions

View File

@@ -22,7 +22,16 @@ describe("History Service suite", function() {
};
var createMockHistoryService = function () {
var mockPiskelController = { getPiskel : function () {}, getFPS : function () { return 12; } };
var mockPiskelController = {
getWrappedPiskelController: function () {
return {
getPiskel : function () {},
getFPS : function () {
return 12;
}
}
}
};
var mockShortcutService = {
registerShortcuts : function () {},
registerShortcut : function () {}