Update dashboard data test to reflect correct response structure with summary instead of models. (#4991)

Co-authored-by: gru-agent[bot] <185149714+gru-agent[bot]@users.noreply.github.com>
This commit is contained in:
gru-agent[bot]
2025-06-11 18:23:18 +08:00
committed by GitHub
parent 9f8b75fd7c
commit cc5e46c3f4

View File

@@ -254,7 +254,7 @@ describe('channel api', () => {
data: [ data: [
{ {
timestamp: 1000, timestamp: 1000,
models: [] summary: []
} }
] ]
} }
@@ -262,13 +262,14 @@ describe('channel api', () => {
const result = await getDashboardV2({ const result = await getDashboardV2({
start_timestamp: 0, start_timestamp: 0,
end_timestamp: 1000 end_timestamp: 1000,
timespan: 'minute'
}); });
expect(result).toEqual([ expect(result).toEqual([
{ {
timestamp: 1000, timestamp: 1000,
models: [] summary: []
} }
]); ]);
}); });