Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Fix unittest for people in New Zealand
Browse files Browse the repository at this point in the history
fix #12370 by changing the test to use a time of day that is on the same day in all timezones

Test Plan:
Change local timezone to New Zealand
unittests should pass
  • Loading branch information
diracdeltas authored and petemill committed Dec 22, 2017
1 parent b1cfd12 commit 9588ac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/app/browser/datesTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let dates
require('../../braveUnit')

describe('update date handling', function () {
const exampleDate = 1510687381887 // Tuesday November 14th 2017, 12:23:01 PM
const exampleDate = 1510654981887 // Tuesday November 14th 2017, 10:23:01 UTC
const exampleDate2 = 1512304291746 // Monday December 04th 2017, 9:18:11 AM
let fakeClock
before(function () {
Expand Down

0 comments on commit 9588ac2

Please sign in to comment.