openmct/platform/representation/test/gestures/GestureRepresenterSpec.js

37 lines
1.2 KiB
JavaScript
Raw Normal View History

/*global define,describe,it,expect,beforeEach,jasmine*/
define(
["../../src/gestures/GestureRepresenter"],
function (GestureRepresenter) {
"use strict";
describe("A gesture representer", function () {
// it("attaches declared gestures, and detaches on refresh", function () {
// mctRepresentation.link(mockScope, mockElement);
//
// mockScope.key = "uvw";
// mockScope.domainObject = mockDomainObject;
//
// // Trigger the watch
// mockScope.$watch.mostRecentCall.args[1]();
//
// expect(mockGestureService.attachGestures).toHaveBeenCalledWith(
// mockElement,
// mockDomainObject,
// [ "testGesture", "otherTestGesture" ]
// );
//
// expect(mockGestureHandle.destroy).not.toHaveBeenCalled();
//
// // Refresh, expect a detach
// mockScope.key = "abc";
// mockScope.$watch.mostRecentCall.args[1]();
//
// // Should have destroyed those old gestures
// expect(mockGestureHandle.destroy).toHaveBeenCalled();
// });
});
}
);