Fix integration test (#15232)
This commit is contained in:
+6
@@ -14,6 +14,7 @@ import { WORKSPACE_MEMBER_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev
|
||||
describe('Core REST API Create One endpoint', () => {
|
||||
beforeEach(async () => {
|
||||
await deleteAllRecords('person');
|
||||
await deleteAllRecords('company');
|
||||
await makeRestAPIRequest({
|
||||
method: 'post',
|
||||
path: '/companies',
|
||||
@@ -26,6 +27,11 @@ describe('Core REST API Create One endpoint', () => {
|
||||
});
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await deleteAllRecords('person');
|
||||
await deleteAllRecords('company');
|
||||
});
|
||||
|
||||
it('should create a new person', async () => {
|
||||
const personCity = generateRecordName(TEST_PERSON_1_ID);
|
||||
const requestBody = {
|
||||
|
||||
Reference in New Issue
Block a user