Skip to content

Commit

Permalink
updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
lovenishs04 committed Jan 22, 2025
1 parent 81da4af commit 498c6df
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,6 @@ describe('Event Threat Detection Custom module', async () => {
await cleanupExistingCustomModules();
});

it('should create the event threat detection custom module', done => {
const output = exec(
`node management_api/createEventThreatDetectionCustomModule.js ${data.orgId} ${data.customModuleName}`
);
assert(output.includes(data.orgId));
assert(output.includes(data.customModuleName));
assert.match(output, /EventThreatDetectionCustomModule created/);
assert.notMatch(output, /undefined/);
done();
});

it('should get the event threat detection custom module', done => {
const output = exec(
`node management_api/getEventThreatDetectionCustomModule.js ${data.orgId} ${data.customModuleId}`
Expand Down Expand Up @@ -167,6 +156,17 @@ describe('Event Threat Detection Custom module', async () => {
done();
});

it('should create the event threat detection custom module', done => {
const output = exec(
`node management_api/createEventThreatDetectionCustomModule.js ${data.orgId} ${data.customModuleName}`
);
assert(output.includes(data.orgId));
assert(output.includes(data.customModuleName));
assert.match(output, /EventThreatDetectionCustomModule created/);
assert.notMatch(output, /undefined/);
done();
});

it('should delete the event threat detection custom module', done => {
const output = exec(
`node management_api/deleteEventThreatDetectionCustomModule.js ${data.orgId} ${data.customModuleId}`
Expand Down

0 comments on commit 498c6df

Please sign in to comment.