diff --git a/aio/content/examples/http/e2e/src/app.e2e-spec.ts b/aio/content/examples/http/e2e/src/app.e2e-spec.ts index 41a4c2e3c7..6a5e78e24d 100644 --- a/aio/content/examples/http/e2e/src/app.e2e-spec.ts +++ b/aio/content/examples/http/e2e/src/app.e2e-spec.ts @@ -66,6 +66,7 @@ describe('Http Tests', () => { await checkLogForMessage('GET "assets/config.json"'); expect(await page.configSpan.getText()).toContain('Heroes API URL is "api/heroes"'); expect(await page.configSpan.getText()).toContain('Textfile URL is "assets/textfile.txt"'); + expect(await page.configSpan.getText()).toContain('Date is "Wed Jan 29 2020" (date)'); }); it('can fetch the configuration JSON file with headers', async () => { diff --git a/aio/content/examples/http/src/app/config/config.component.html b/aio/content/examples/http/src/app/config/config.component.html index e17e9bc109..8c2416e39e 100644 --- a/aio/content/examples/http/src/app/config/config.component.html +++ b/aio/content/examples/http/src/app/config/config.component.html @@ -7,6 +7,7 @@

Heroes API URL is "{{config.heroesUrl}}"

Textfile URL is "{{config.textfile}}"

+

Date is "{{config.date.toDateString()}}" ({{getType(config.date)}})

Response headers: