Skip to content

Commit

Permalink
chore(updated-comments): updated comments on tests and getTimezoneOffset
Browse files Browse the repository at this point in the history
  • Loading branch information
asalem1 committed Aug 5, 2020
1 parent 91a42a5 commit 33bb672
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ui/src/dashboards/selectors/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ describe('Dashboards.Selector', () => {
upper: `2020-05-05T11:00:00Z`,
type: 'custom',
}

// Offset for PST
mocked(getTimezoneOffset).mockImplementation(() => 420)

expect(
Expand Down Expand Up @@ -166,7 +166,7 @@ describe('Dashboards.Selector', () => {
upper: `2020-05-05T11:00:00Z`,
type: 'custom',
}

// Offset for CET
mocked(getTimezoneOffset).mockImplementation(() => -120)

expect(
Expand Down
1 change: 0 additions & 1 deletion ui/src/dashboards/utils/getTimezoneOffset.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* PLEASE READ
* This files has been created as a way to effectively test
* the getTimeRangeWithTimezone function since current system (circleCI, Jenkins)
* and JS Date limitations prevent us from fully testing out its dependent functions
Expand Down

0 comments on commit 33bb672

Please sign in to comment.