From ac88706f93ab653716df8f936e6c1e9aba95fe76 Mon Sep 17 00:00:00 2001 From: frosty Date: Sun, 1 Mar 2020 23:11:17 -0700 Subject: [PATCH] fix(scully): test failing depending on timezone of the build machine When you are in the USA and run a build, the app generates different templates during the generation. This is because we were using the wrong field for dates, and we were not adding a locale. Fixed that. ISSUES CLOSED: #342 --- .../sampleBlog/src/app/blog/blog-list/blog-list.component.html | 2 +- src/__tests__/__snapshots__/blog-index.spec.ts.snap | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/sampleBlog/src/app/blog/blog-list/blog-list.component.html b/projects/sampleBlog/src/app/blog/blog-list/blog-list.component.html index 2d4abfec3..4986d8450 100644 --- a/projects/sampleBlog/src/app/blog/blog-list/blog-list.component.html +++ b/projects/sampleBlog/src/app/blog/blog-list/blog-list.component.html @@ -3,7 +3,7 @@

Overview of blog posts

{{ blog.title || blog.route }}

-

{{ blog.published | date: 'shortDate' }}

+

{{ blog['publish date'] | date: 'shortDate':'GMT' }}

{{ blog.description }}

diff --git a/src/__tests__/__snapshots__/blog-index.spec.ts.snap b/src/__tests__/__snapshots__/blog-index.spec.ts.snap index fafb848cf..07c717d74 100644 --- a/src/__tests__/__snapshots__/blog-index.spec.ts.snap +++ b/src/__tests__/__snapshots__/blog-index.spec.ts.snap @@ -50,7 +50,7 @@ exports[`Static: Test blog index Check clean blog index by scully 1`] = ` - Scully demo blog app! rendering inside scully🏠

Overview of blog posts

Deeply embedded

12/31/69

This is the deep folder demo page in this sample.

My first page

This is the first demo page in this sample.

My third page

At this point, I should write something different in here.

The Rainbow Cat, A free book out of the Guttenberg library

/blog/page-5

My test sub page

12/31/69

This is the second demo page in this sample.

Made with ❤️ @HeroDevs

+ Scully demo blog app! rendering inside scully🏠

Overview of blog posts

Deeply embedded

11/27/19

This is the deep folder demo page in this sample.

My first page

11/26/19

This is the first demo page in this sample.

My third page

11/28/19

At this point, I should write something different in here.

The Rainbow Cat, A free book out of the Guttenberg library

12/16/19

/blog/page-5

My test sub page

11/27/19

This is the second demo page in this sample.

Made with ❤️ @HeroDevs

"