Skip to content

Commit

Permalink
whoops forgot space
Browse files Browse the repository at this point in the history
  • Loading branch information
hellobontempo committed Apr 30, 2024
1 parent ba6f982 commit 5871541
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/tests/integration/helpers/date-format-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 5871541

Please sign in to comment.