Skip to content

Commit

Permalink
[OSCI] [FIX] time conversion unit test bug (#5174) (#5220)
Browse files Browse the repository at this point in the history
* fix time conversion test bug
* Fix wrong test case

---------

Signed-off-by: Thanh <lechithanh2003@gmail.com>
Signed-off-by: Anan Zhuang <ananzh@amazon.com>
Signed-off-by: Miki <miki@amazon.com>
Co-authored-by: Anan Zhuang <ananzh@amazon.com>
Co-authored-by: Miki <miki@amazon.com>
Co-authored-by: Sean Neumann <1413295+seanneumann@users.noreply.github.com>
(cherry picked from commit 336dce6)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
4 people authored Oct 4, 2023
1 parent d95a746 commit 430a62d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ describe('buildPointSeriesData', () => {
expect(result.ordered.interval.asHours()).toBe(1);
expect(result.ordered.intervalOpenSearchUnit).toBe('h');
expect(result.ordered.intervalOpenSearchValue).toBe(1);
expect(result.ordered.min.format()).toBe('2023-01-01T00:00:00+00:00');
expect(result.ordered.max.format()).toBe('2023-01-02T00:00:00+00:00');
expect(result.ordered.min.format()).toBe(moment('2023-01-01T00:00:00+00:00').format());
expect(result.ordered.max.format()).toBe(moment('2023-01-02T00:00:00+00:00').format());
expect(result.yAxisLabel).toEqual('Y Axis');
expect(result.values).toEqual([
{ x: 10, y: 100 },
Expand Down

0 comments on commit 430a62d

Please sign in to comment.