diff --git a/tests/client_tests.ts b/tests/client_tests.ts index e3a360f6d..cb869b05c 100644 --- a/tests/client_tests.ts +++ b/tests/client_tests.ts @@ -112,7 +112,9 @@ describe.each([ const index = client.getIndex(uidAndPrimaryKey.uid) await expect( index.updateIndex({ primaryKey: 'newPrimaryKey' }) - ).rejects.toThrowError(`The primary key cannot be updated`) + ).rejects.toThrowError( + `The schema already have an primary key. It's impossible to update it` + ) // see issue in meilisearch/meilisearch }) test(`${permission} key: delete index`, async () => { diff --git a/tests/documents_tests.ts b/tests/documents_tests.ts index 0d2fcc429..610fe0148 100644 --- a/tests/documents_tests.ts +++ b/tests/documents_tests.ts @@ -376,10 +376,7 @@ describe.each([ .getAllUpdateStatus() .then((response: Types.Update[]) => { const lastUpdate = response[response.length - 1] - expect(lastUpdate).toHaveProperty( - 'error', - 'serializer error; Primary key is missing.' - ) + expect(lastUpdate).toHaveProperty('error', 'document id is missing') expect(lastUpdate).toHaveProperty('status', 'failed') }) })