
This integration test was created from a vanilla CLI generated project with the following modifications: * remove `PercentPipe` usage from `app.component.html` - these are not yet supported by ivy * changed `ng test` in `package.json` to only to `ng build` - right now we can only confirm that the app will build * hard-code `ngDevMode` in `index.html` - the CLI does not yet set this correctly PR Close #26403
20 lines
431 B
TypeScript
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');
|
|
})
|
|
});
|