angular-docs-cn/integration/cli-hello-world/e2e/app.e2e-spec.ts

20 lines
431 B
TypeScript

import { AppPage } from './app.po';
describe('cli-hello-world App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('Welcome to app!');
});
it('the percent pipe should work', () => {
page.navigateTo();
expect(page.getPipeContent()).toEqual('100 % awesome');
})
});