From 56089dbdf92a10167c25ad98ca96e0b4c953a6de Mon Sep 17 00:00:00 2001 From: xilesun <2013xile@gmail.com> Date: Thu, 7 Nov 2024 21:56:11 +0800 Subject: [PATCH] fix(error-handler): test --- .../src/server/__tests__/render-error.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/server/__tests__/render-error.test.ts b/packages/plugins/@nocobase/plugin-error-handler/src/server/__tests__/render-error.test.ts index 03c8516255..46bc9c7d8c 100644 --- a/packages/plugins/@nocobase/plugin-error-handler/src/server/__tests__/render-error.test.ts +++ b/packages/plugins/@nocobase/plugin-error-handler/src/server/__tests__/render-error.test.ts @@ -112,7 +112,7 @@ describe('create with exception', () => { 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 () => {