Skip to content

Commit 17146f4

Browse files
committed
fix test
1 parent 403acda commit 17146f4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/api/src/routers/api/__tests__/sources.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { SourceKind, TSourceUnion } from '@hyperdx/common-utils/dist/types';
1+
import { SourceKind } from '@hyperdx/common-utils/dist/types';
22
import { Types } from 'mongoose';
33

44
import { getLoggedInAgent, getServer } from '@/fixtures';
55
import { Source } from '@/models/source';
66

7-
const MOCK_SOURCE: Extract<TSourceUnion, { kind: 'log' }> = {
7+
const MOCK_SOURCE = {
88
kind: SourceKind.Log,
99
name: 'Test Source',
1010
connection: new Types.ObjectId().toString(),
@@ -13,7 +13,6 @@ const MOCK_SOURCE: Extract<TSourceUnion, { kind: 'log' }> = {
1313
tableName: 'test_table',
1414
},
1515
timestampValueExpression: 'timestamp',
16-
defaultTableSelectExpression: 'body',
1716
};
1817

1918
describe('sources router', () => {

0 commit comments

Comments
 (0)