Skip to content

Commit

Permalink
fix: fixed broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavkparti committed Aug 22, 2023
1 parent 6da04be commit d4940bb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions __tests__/trust-relationship-api.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe('Trust relationship management', () => {
trust_request_type: 'send',
requestee_wallet: seed.walletC.name,
});
expect(res).property('statusCode').to.eq(200);
expect(res).property('statusCode').to.eq(201);
});

it('GET /trust_relationships', async () => {
Expand Down Expand Up @@ -110,7 +110,7 @@ describe('Trust relationship management', () => {
trust_request_type: 'send',
requestee_wallet: seed.walletB.name,
});
expect(res).property('statusCode').to.eq(200);
expect(res).property('statusCode').to.eq(201);
});

it(`${seed.walletB.name} try to request "manage" relationship to ${seed.wallet.name}`, async () => {
Expand All @@ -124,7 +124,7 @@ describe('Trust relationship management', () => {
trust_request_type: 'manage',
requestee_wallet: seed.wallet.name,
});
expect(res).property('statusCode').to.eq(200);
expect(res).property('statusCode').to.eq(201);
const trustRelationship = res.body;
expect(trustRelationship).property('id').to.be.a.uuid('v4');
expect(trustRelationship)
Expand Down Expand Up @@ -158,7 +158,7 @@ describe('Trust relationship management', () => {
trust_request_type: 'yield',
requestee_wallet: seed.wallet.name,
});
expect(res).property('statusCode').to.eq(200);
expect(res).property('statusCode').to.eq(201);
const trustRelationship = res.body;
expect(trustRelationship).property('id').to.be.a.uuid('v4');
expect(trustRelationship)
Expand All @@ -167,7 +167,7 @@ describe('Trust relationship management', () => {
trustRelationshipId = trustRelationship.id;
});

it(`${seed.wallet.name} accept yeild request`, async () => {
it(`${seed.wallet.name} accept yield request`, async () => {
const res = await request(server)
.post(`/trust_relationships/${trustRelationshipId}/accept`)
.set('Content-Type', 'application/json')
Expand Down
2 changes: 1 addition & 1 deletion __tests__/trust-relationship-send-cancel.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe('Trust relationship: cancel send', () => {
trust_request_type: 'send',
requestee_wallet: seed.walletB.name,
});
expect(res).property('statusCode').to.eq(200);
expect(res).property('statusCode').to.eq(201);
trustRelationship = res.body;
});

Expand Down
2 changes: 1 addition & 1 deletion __tests__/trust-relationship-send-decline.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe('Trust relationship: decline send', () => {
trust_request_type: 'send',
requestee_wallet: seed.walletB.name,
});
expect(res).property('statusCode').to.eq(200);
expect(res).property('statusCode').to.eq(201);
trustRelationship = res.body;
expect(trustRelationship).property('id').to.be.a.uuid('v4');
expect(trustRelationship)
Expand Down
2 changes: 1 addition & 1 deletion __tests__/trust-relationship-send.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ describe('Trust relationship: send', () => {
trust_request_type: 'send',
requestee_wallet: seed.walletB.name,
});
expect(res).property('statusCode').to.eq(200);
expect(res).property('statusCode').to.eq(201);
trustRelationship = res.body;
expect(trustRelationship).property('id').to.be.a.uuid('v4');
expect(trustRelationship)
Expand Down

0 comments on commit d4940bb

Please sign in to comment.