econocart/src/pages/inicio/main.spec.ts

28 lines
772 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';
2017-05-21 00:16:17 +00:00
import { PageInicio } from './main';
2017-05-07 03:52:00 +00:00
2017-05-21 00:16:17 +00:00
let fixture: ComponentFixture<PageInicio> = null;
2017-05-07 03:52:00 +00:00
let instance: any = null;
declare var describe: any;
declare var it: any;
declare var expect: any;
declare var beforeEach: any;
2017-05-21 00:16:17 +00:00
describe('Pages: PageInicio', () => {
2017-05-07 03:52:00 +00:00
2017-05-21 00:16:17 +00:00
beforeEach(async(() => TestUtils.beforeEachCompiler([PageInicio]).then(compiled => {
2017-05-07 03:52:00 +00:00
fixture = compiled.fixture;
instance = compiled.instance;
})));
it('should create the start page', async(() => {
expect(instance).toBeTruthy();
}));
2017-05-07 13:39:14 +00:00
2017-05-11 01:50:54 +00:00
it('should have a clickable button to another page', async(() => {
2017-05-07 13:39:14 +00:00
expect(instance.openPage()).toBeTruthy();
}));
2017-05-07 03:52:00 +00:00
});