Skip to content

Commit

Permalink
move UT
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyongjie committed Sep 28, 2022
1 parent db873ab commit 432fe35
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,16 @@ test('get temporal columns from a QueryResponse', () => {
],
defaultTemporalColumn: 'Column 2',
});
});

test('get temporal columns from null', () => {
expect(getTemporalColumns(null)).toEqual({
temporalColumns: [],
defaultTemporalColumn: undefined,
});
});

test('should accept empty Dataset or queryResponse', () => {
expect(
getTemporalColumns({
...TestDataset,
Expand All @@ -84,10 +93,3 @@ test('get temporal columns from a QueryResponse', () => {
defaultTemporalColumn: undefined,
});
});

test('get temporal columns from null', () => {
expect(getTemporalColumns(null)).toEqual({
temporalColumns: [],
defaultTemporalColumn: undefined,
});
});

0 comments on commit 432fe35

Please sign in to comment.