Skip to content

Commit f41f0b9

Browse files
committed
fix: updated test cases with timestamp_column argument
1 parent 90df6a0 commit f41f0b9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/components/QueryEditor.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ const instanceSettings: DataSourceInstanceSettings<MyDataSourceOptions> = {
5454
isDefault: false,
5555
access: 'proxy',
5656
jsonData: {
57+
timestamp_column: '_timestamp',
5758
url: '/api/datasources/proxy/uid/fd886f75-fdd9-444b-8868-be92687ff464',
5859
},
5960
readOnly: false,

src/datasource.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ describe('DataSource', () => {
116116
isDefault: false,
117117
access: 'proxy',
118118
jsonData: {
119+
timestamp_column: '_timestamp',
119120
url: '/api/datasources/proxy/uid/fd886f75-fdd9-444b-8868-be92687ff464',
120121
},
121122
readOnly: false,
@@ -397,7 +398,7 @@ describe('DataSource', () => {
397398
encoding: 'base64',
398399
};
399400
beforeEach(async () => {
400-
result = buildQuery(queryData, timestamps, queryData.streamFields);
401+
result = buildQuery(queryData, timestamps, queryData.streamFields, 'explore', '_timestamp');
401402
});
402403
it('should return query request data', () => {
403404
expect(JSON.stringify(result)).toMatch(JSON.stringify(expectedReq));

0 commit comments

Comments
 (0)