Skip to content

Commit

Permalink
test: Fix test expectations for date formats
Browse files Browse the repository at this point in the history
This test should have been updated in 4b3ae95.

Change-Id: I91cc03dd86ebf2274e1e7d0f66ad47f81630004a
  • Loading branch information
joeyparrish committed Nov 15, 2021
1 parent e8ac1fb commit a7262ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/log-window-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ describe('Log window', () => {
EmeLogWindow.instance.appendLog({
timestamp: date.getTime(),
});
// Times are in the local user's timezone. Without mocking that somehow,
// we can only set expectations on the date format.
expect(mockLogElement.querySelector('h3').textContent)
.toContain('1969-07-20 12:34:56');
.toContain('Sun Jul 20 1969');
});

it('logs with durations', () => {
Expand Down

0 comments on commit a7262ba

Please sign in to comment.