Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
muskansethi1 committed Aug 12, 2024
1 parent 386924f commit 5b66654
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/integration/attachments.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,21 @@ const { join } = cds.utils.path;
axios.defaults.auth = { username: "alice" };
jest.setTimeout(5 * 60 * 1000);

const utils = new RequestSend(POST);
let utils = null;
let sampleDocID = null;
let incidentID = null;
let db = null;
let attachmentsService = null;

describe("Tests for uploading/deleting attachments through API calls - in-memory db", () => {
beforeAll(async () => {
//cds.env.requires.db.kind = "sql"
cds.env.requires.db.kind = "sql"
cds.env.requires.attachments.kind = "db";
db = await cds.connect.to("sql:my.db");
attachmentsService = await cds.connect.to("attachments");
sampleDocID = null;
incidentID = "3ccf474c-3881-44b7-99fb-59a2a4668418";
utils = new RequestSend(POST);
});

//Draft mode uploading attachment
Expand Down

0 comments on commit 5b66654

Please sign in to comment.