27 lines
No EOL
651 B
TypeScript
27 lines
No EOL
651 B
TypeScript
import { ViewArrayFactory } from './view-array.factory';
|
|
import { ViewArray } from './view-array';
|
|
|
|
|
|
describe("Factory: ViewArrayFactory", () => {
|
|
var viewArrayFactory: ViewArrayFactory;
|
|
var $intervalMock: any;
|
|
|
|
beforeEach(() => {
|
|
$intervalMock = jasmine.createSpy('$intervalSpy');
|
|
$intervalMock.cancel = jasmine.createSpy('cancelSpy');
|
|
viewArrayFactory = new ViewArrayFactory($intervalMock)
|
|
});
|
|
|
|
describe("constructor", () => {
|
|
|
|
});
|
|
|
|
describe("create", () => {
|
|
|
|
it("returns a ViewArray object", () => {
|
|
var viewArray: ViewArray = viewArrayFactory.create();
|
|
|
|
expect(viewArray).toBeDefined();
|
|
});
|
|
});
|
|
}); |