mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 06:55:50 +00:00
fix(error-handler): test
This commit is contained in:
parent
d5a7d7c8e7
commit
56089dbdf9
@ -112,7 +112,7 @@ describe('create with exception', () => {
|
|||||||
|
|
||||||
expect(response.statusCode).toEqual(400);
|
expect(response.statusCode).toEqual(400);
|
||||||
|
|
||||||
expect(response.body['errors'][0]['message']).toBe('name must be unique');
|
expect(response.body['errors'][0]['message']).toBe('name already exists');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should render error with field title', async () => {
|
it('should render error with field title', async () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user