Skip to content

Commit

Permalink
Fix a faulty test
Browse files Browse the repository at this point in the history
  • Loading branch information
MytsV committed Aug 29, 2024
1 parent 24163b5 commit 4de5d83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/api/did/list-did-rules.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,14 @@ describe("List DID Rules Feature tests", () => {
expect(receivedData[0].account).toBe('dummy_account')
});

it("should return a 404 error if there are no matching rules", async () => {
it("should list DID rules if fetching its subscription fails", async () => {
fetchMock.doMock();
const didListRulesMockEndpoint: MockEndpoint = {
url: `${MockRucioServerFactory.RUCIO_HOST}/dids/test/dataset1/rules`,
method: "GET",
includes: "test/dataset1/rules",
response: {
status: 404,
status: 200,
headers: {
"Content-Type": "application/x-json-stream",
},
Expand Down

0 comments on commit 4de5d83

Please sign in to comment.