Skip to content

Commit 86410be

Browse files
committed
fix mock source lint
1 parent fa85909 commit 86410be

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎packages/api/src/controllers/__tests__/ai.test.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,13 +257,14 @@ describe('openai provider', () => {
257257
});
258258

259259
describe('getChartConfigFromResolvedConfig', () => {
260-
const source = {
260+
// @ts-expect-error mock source only has the fields getChartConfigFromResolvedConfig reads
261+
const source: ISource = {
261262
id: 'source-id',
262263
kind: SourceKind.Trace,
263264
connection: 'connection-id',
264265
from: { databaseName: 'default', tableName: 'otel_traces' },
265266
timestampValueExpression: 'Timestamp',
266-
} as unknown as ISource;
267+
};
267268

268269
it('maps percentile aggregations to quantile with a level', () => {
269270
const result = getChartConfigFromResolvedConfig(

0 commit comments

Comments
 (0)