econocart/src/pages/home/home.spec.ts

30 lines
762 B
TypeScript
Raw Normal View History

2017-05-07 03:52:00 +00:00
import { ComponentFixture, async } from '@angular/core/testing';
import { TestUtils } from '../../test';
import { HomePage } from './home';
let fixture: ComponentFixture<HomePage> = null;
let instance: any = null;
declare var describe: any;
declare var it: any;
declare var expect: any;
declare var beforeEach: any;
describe('Pages: HomePage', () => {
beforeEach(async(() => TestUtils.beforeEachCompiler([HomePage]).then(compiled => {
fixture = compiled.fixture;
instance = compiled.instance;
})));
it('should create the start page', async(() => {
expect(instance).toBeTruthy();
}));
2017-05-07 13:39:14 +00:00
/*
it('should have a clickable button', async(() => {
expect(instance.openPage()).toBeTruthy();
}));
*/
2017-05-07 03:52:00 +00:00
});