Skip to content

Commit e654583

Browse files
committed
Add endpoint/invocationTarget match test.
1 parent a333e12 commit e654583

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/implementations.spec.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ describe('Loading implementations', () => {
6161
today.getFullYear(), today.getMonth() + 1, today.getDate());
6262
chai.expect(new Date(expiration)).to.be.afterDate(nextMonth);
6363
});
64+
65+
it(`The "endpoint" MUST match the "invocationTarget" in the
66+
ZCAP for ${config.id}`, () => {
67+
const invocationTarget = JSON.parse(
68+
config.zcap.capability).invocationTarget;
69+
chai.expect(config.endpoint).to.equal(invocationTarget);
70+
});
6471
});
6572
});
6673
});

0 commit comments

Comments
 (0)