mirror of https://github.com/buster-so/buster.git
fix unit tests
This commit is contained in:
parent
72dda21434
commit
bf2ab17716
|
@ -275,7 +275,7 @@ describe('getDashboardHandler', () => {
|
|||
});
|
||||
|
||||
await expect(getDashboardHandler({ dashboardId: 'dashboard-123' }, mockUser)).rejects.toThrow(
|
||||
new HTTPException(403, { message: 'Public access has expired' })
|
||||
new HTTPException(403, { message: 'Public access to this dashboard has expired' })
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
@ -345,7 +345,7 @@ describe('metric-helpers', () => {
|
|||
const options: MetricAccessOptions = { publicAccessPreviouslyVerified: false };
|
||||
|
||||
await expect(fetchAndProcessMetricData('metric-123', mockUser, options)).rejects.toThrow(
|
||||
new HTTPException(403, { message: 'Public access has expired' })
|
||||
new HTTPException(403, { message: 'Public access expired' })
|
||||
);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue