Skip to content

Commit d85e8fc

Browse files
committed
Merge branch 'main' into min
2 parents 31a8d64 + ab1b857 commit d85e8fc

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/integration/attachments.test.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,9 @@ describe("Tests for uploading/deleting attachments through API calls - in-memory
154154
}
155155

156156
//content should not be there
157-
try {
158-
await GET(
159-
`odata/v4/processor/Incidents(ID=${incidentID},IsActiveEntity=true)/attachments(up__ID=${incidentID},ID=${sampleDocID},IsActiveEntity=true)/content`
160-
);
161-
} catch (err) {
162-
expect(err.code).to.equal("ERR_BAD_REQUEST");
163-
}
157+
await expect(GET(
158+
`odata/v4/processor/Incidents(ID=${incidentID},IsActiveEntity=true)/attachments(up__ID=${incidentID},ID=${sampleDocID},IsActiveEntity=true)/content`
159+
)).to.be.rejectedWith(/404/);
164160
});
165161
});
166162

0 commit comments

Comments
 (0)