Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
muskansethi1 committed Sep 4, 2024
1 parent c680845 commit d15a5b0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
4 changes: 0 additions & 4 deletions tests/incidents-app/cds-plugin.js

This file was deleted.

6 changes: 0 additions & 6 deletions tests/incidents-app/srv/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,3 @@ class ProcessorService extends cds.ApplicationService {
}

module.exports = { ProcessorService }


// ------------------------------------------------------------------------------------------------------------------------------------------------------------
// For demo purposess only...
const _require = id => {try{ return require(id) } catch(e) { if (e.code !== 'MODULE_NOT_FOUND') throw e }}
cds.once("served", ()=> _require('./alert-notifications')?.prototype.init.call(cds.services.ProcessorService))
4 changes: 2 additions & 2 deletions tests/integration/attachments.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe("Tests for uploading/deleting attachments through API calls - in-memory
const response = await GET(
`odata/v4/processor/Incidents(ID=${incidentID},IsActiveEntity=true)/attachments`
);
//the data should have two attachments
//the data should have only one attachment
expect(response.status).to.equal(200);
expect(response.data.value.length).to.equal(1);
//to make sure content is not read
Expand Down Expand Up @@ -119,7 +119,7 @@ describe("Tests for uploading/deleting attachments through API calls - in-memory
const response = await GET(
`odata/v4/processor/Incidents(ID=${incidentID},IsActiveEntity=true)/attachments`
);
//the data should have two attachments
//the data should have no attachments
expect(response.status).to.equal(200);
expect(response.data.value.length).to.equal(0);
} catch (err) {
Expand Down

0 comments on commit d15a5b0

Please sign in to comment.