2019-10-08 09:46:28 -04:00
|
|
|
import {AppPage} from '../app.po';
|
|
|
|
|
|
|
|
describe('cli-hello-world-ivy App', () => {
|
|
|
|
let page: AppPage;
|
|
|
|
beforeEach(() => {
|
|
|
|
page = new AppPage();
|
|
|
|
page.navigateTo();
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should display title',
|
|
|
|
() => { expect(page.getHeading()).toEqual('Bonjour, cli-hello-world-ivy-compat! (inline)'); });
|
|
|
|
|
|
|
|
it('should display welcome message', () => {
|
|
|
|
expect(page.getParagraph('message')).toEqual('Bienvenue sur l\'application i18n. (inline)');
|
|
|
|
});
|
2019-10-23 17:49:02 -04:00
|
|
|
|
|
|
|
it('should display the locale', () => { expect(page.getParagraph('locale')).toEqual('fr'); });
|
|
|
|
|
|
|
|
it('the date pipe should show the localized month', () => {
|
|
|
|
page.navigateTo();
|
|
|
|
expect(page.getParagraph('date')).toEqual('janvier');
|
|
|
|
});
|
2019-10-08 09:46:28 -04:00
|
|
|
});
|