From 587154111533dc5c262cae02696198c6c1bf1e46 Mon Sep 17 00:00:00 2001 From: "clairebontempo@gmail.com" Date: Tue, 30 Apr 2024 15:43:56 +0100 Subject: [PATCH] whoops forgot space --- ui/tests/integration/helpers/date-format-test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/tests/integration/helpers/date-format-test.js b/ui/tests/integration/helpers/date-format-test.js index 5e07497fab2b..c5407fa9b2fe 100644 --- a/ui/tests/integration/helpers/date-format-test.js +++ b/ui/tests/integration/helpers/date-format-test.js @@ -42,6 +42,7 @@ module('Integration | Helper | date-format', function (hooks) { }); test('displays time zone if withTimeZone=true', async function (assert) { + // this test may fail locally if you're in a non-US timezone this.set('withTimezone', true); this.set('timestampDate', TEST_DATE); @@ -72,7 +73,7 @@ module('Integration | Helper | date-format', function (hooks) { test('it formats timezone', async function (assert) { // compute expected because otherwise this fails locally because of differing timezones - const expected = TEST_DATE.toLocaleTimeString(undefined, { timeZoneName: 'short' }).split(' ')[2]; + const expected = ` ${TEST_DATE.toLocaleTimeString(undefined, { timeZoneName: 'short' }).split(' ')[2]}`; const actual = formatTimeZone(TEST_DATE); assert.notStrictEqual(actual, undefined, 'formatted timezone is not undefined');