removed unnecessary factory classes, simplified existing services
This commit is contained in:
parent
2a59014f0b
commit
64a4b68216
15 changed files with 69 additions and 158 deletions
|
@ -4,14 +4,12 @@ import { ViewArrayImpl } from './view-array.impl';
|
|||
describe("ViewArrayImplImpl", () => {
|
||||
var viewArrayImpl: ViewArrayImpl;
|
||||
var $intervalMock: any;
|
||||
var additionalCount: number;
|
||||
|
||||
beforeEach(() => {
|
||||
$intervalMock = jasmine.createSpy('$intervalSpy');
|
||||
$intervalMock.and.returnValue({});
|
||||
$intervalMock.cancel = jasmine.createSpy('cancelSpy');
|
||||
additionalCount = 20;
|
||||
viewArrayImpl = new ViewArrayImpl($intervalMock, additionalCount);
|
||||
viewArrayImpl = new ViewArrayImpl($intervalMock);
|
||||
});
|
||||
|
||||
|
||||
|
@ -137,4 +135,13 @@ describe("ViewArrayImplImpl", () => {
|
|||
expect($intervalMock.cancel).toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
|
||||
describe("create", () => {
|
||||
|
||||
it("returns a new ViewArrayImpl instance", () => {
|
||||
var newViewArrayImpl: ViewArrayImpl = viewArrayImpl.create();
|
||||
|
||||
expect(newViewArrayImpl).toBeDefined();
|
||||
});
|
||||
});
|
||||
});
|
Reference in a new issue