From 13cd87692693cb3061cc0ed9a3f2da95af7f2ea7 Mon Sep 17 00:00:00 2001 From: William Wills Date: Fri, 22 Nov 2024 16:32:54 -0500 Subject: [PATCH] fix: adjust test expected messages for clarified RPC responses --- tests/resources/organization.spec.js | 2 +- tests/test-fixtures/project-fixtures.js | 2 +- tests/test-fixtures/unit-fixtures.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/resources/organization.spec.js b/tests/resources/organization.spec.js index 6971cff3..308f4a52 100644 --- a/tests/resources/organization.spec.js +++ b/tests/resources/organization.spec.js @@ -73,7 +73,7 @@ describe('Orgainzation Resource CRUD', function () { }); expect(response.body.message).to.equal( - 'Resyncing organization completed', + 'Resyncing organization process initiated', ); }).timeout(TEST_WAIT_TIME * 10); }); diff --git a/tests/test-fixtures/project-fixtures.js b/tests/test-fixtures/project-fixtures.js index 5aaf7977..961dc9d9 100644 --- a/tests/test-fixtures/project-fixtures.js +++ b/tests/test-fixtures/project-fixtures.js @@ -48,7 +48,7 @@ export const deleteProject = async (warehouseProjectId) => { .delete('/v1/projects') .send({ warehouseProjectId }); expect(result.body).to.deep.equal({ - message: 'Project deleted successfully', + message: 'Project deletion staged successfully', success: true, }); expect(result.statusCode).to.equal(200); diff --git a/tests/test-fixtures/unit-fixtures.js b/tests/test-fixtures/unit-fixtures.js index c421235c..b4c10995 100644 --- a/tests/test-fixtures/unit-fixtures.js +++ b/tests/test-fixtures/unit-fixtures.js @@ -21,7 +21,7 @@ export const deleteUnit = async (warehouseUnitId) => { .delete('/v1/units') .send({ warehouseUnitId }); expect(result.body).to.deep.equal({ - message: 'Unit deleted successfully', + message: 'Unit deletion staged successfully', success: true, }); expect(result.statusCode).to.equal(200);