[Timeline] Remove namespacing from specs

This commit is contained in:
Victor Woeltjen
2015-10-23 14:06:55 -07:00
parent 26db524f0e
commit fffe07e7e6
12 changed files with 42 additions and 42 deletions

View File

@@ -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);
});

View File

@@ -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);
});

View File

@@ -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(
});
}
);
);