[Timeline] Remove namespacing from specs
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
/*global define,describe,it,expect,beforeEach,waitsFor,jasmine,window,afterEach*/
|
||||
|
||||
define(
|
||||
["../../src/controllers/WARPDateTimeController"],
|
||||
function (WARPDateTimeController) {
|
||||
["../../src/controllers/TimelineDateTimeController"],
|
||||
function (TimelineDateTimeController) {
|
||||
"use strict";
|
||||
|
||||
describe("The date-time controller for timeline creation", function () {
|
||||
@@ -14,7 +14,7 @@ define(
|
||||
mockScope = jasmine.createSpyObj('$scope', ['$watchCollection']);
|
||||
mockScope.field = 'testField';
|
||||
mockScope.ngModel = { testField: { timestamp: 0, epoch: "SET" } };
|
||||
controller = new WARPDateTimeController(mockScope);
|
||||
controller = new TimelineDateTimeController(mockScope);
|
||||
});
|
||||
|
||||
|
||||
@@ -50,13 +50,13 @@ define(
|
||||
});
|
||||
|
||||
it("provides three handles for activities", function () {
|
||||
testType = "warp.activity";
|
||||
testType = "activity";
|
||||
expect(factory.handles(mockDomainObject).length)
|
||||
.toEqual(3);
|
||||
});
|
||||
|
||||
it("provides two handles for timelines", function () {
|
||||
testType = "warp.timeline";
|
||||
testType = "timeline";
|
||||
expect(factory.handles(mockDomainObject).length)
|
||||
.toEqual(2);
|
||||
});
|
||||
|
||||
@@ -61,13 +61,13 @@ define(
|
||||
it("adds a 'modes' getter-setter to activities", function () {
|
||||
expect(mockSwimlane.modes).toEqual(jasmine.any(Function));
|
||||
expect(mockCapabilities.type.instanceOf)
|
||||
.toHaveBeenCalledWith('warp.activity');
|
||||
.toHaveBeenCalledWith('activity');
|
||||
});
|
||||
|
||||
it("adds a 'link' getter-setter to activities", function () {
|
||||
expect(mockSwimlane.link).toEqual(jasmine.any(Function));
|
||||
expect(mockCapabilities.type.instanceOf)
|
||||
.toHaveBeenCalledWith('warp.activity');
|
||||
.toHaveBeenCalledWith('activity');
|
||||
});
|
||||
|
||||
it("gets modes from the domain object model", function () {
|
||||
@@ -157,4 +157,4 @@ define(
|
||||
});
|
||||
|
||||
}
|
||||
);
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user