Skip to content

Commit

Permalink
test: fix aiding tests [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
iFergal committed May 20, 2024
1 parent b54026b commit 7af8741
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/app/aiding.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ describe('Aiding', () => {

await client.identifiers().rotate('aid1');
const lastCall = client.getLastMockRequest();
assert.equal(lastCall.path, '/identifiers/aid1');
assert.equal(lastCall.method, 'PUT');
assert.equal(lastCall.path, '/identifiers/aid1/events');
assert.equal(lastCall.method, 'POST');
assert.deepEqual(lastCall.body.rot, {
v: 'KERI10JSON000160_',
t: 'rot',
Expand Down Expand Up @@ -215,8 +215,8 @@ describe('Aiding', () => {

await client.identifiers().rotate('aid1');
const lastCall = client.getLastMockRequest();
assert.equal(lastCall.path, '/identifiers/aid1');
assert.equal(lastCall.method, 'PUT');
assert.equal(lastCall.path, '/identifiers/aid1/events');
assert.equal(lastCall.method, 'POST');
expect(lastCall.body.rot).toMatchObject({
v: 'KERI10JSON000160_',
t: 'rot',
Expand All @@ -241,8 +241,8 @@ describe('Aiding', () => {

const lastCall = client.getLastMockRequest();

expect(lastCall.path).toEqual('/identifiers/aid1?type=ixn');
expect(lastCall.method).toEqual('PUT');
expect(lastCall.path).toEqual('/identifiers/aid1/events');
expect(lastCall.method).toEqual('POST');
expect(lastCall.body.ixn).toMatchObject({
v: 'KERI10JSON000138_',
t: 'ixn',
Expand Down Expand Up @@ -283,8 +283,8 @@ describe('Aiding', () => {

const lastCall = client.getLastMockRequest();

expect(lastCall.path).toEqual('/identifiers/aid1?type=ixn');
expect(lastCall.method).toEqual('PUT');
expect(lastCall.path).toEqual('/identifiers/aid1/events');
expect(lastCall.method).toEqual('POST');
expect(lastCall.body.ixn).toMatchObject({
s: 'b',
a: data,
Expand Down

0 comments on commit 7af8741

Please sign in to comment.