mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-28 09:03:53 +00:00
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:
@@ -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: []
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user