Skip to content

Commit fd61ed5

Browse files
Update tests with the two new ledger functions
1 parent fef85f3 commit fd61ed5

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

test/Particle.spec.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2901,6 +2901,30 @@ describe('ParticleAPI', () => {
29012901
});
29022902
});
29032903
});
2904+
2905+
describe('listLedgerInstanceVersions', () => {
2906+
it('generates request', () => {
2907+
return api.listLedgerInstanceVersions(propsWithOrg).then((results) => {
2908+
results.should.match({
2909+
method: 'get',
2910+
uri: `/v1/orgs/${org}/ledgers/${props.ledgerName}/instances/${props.scopeValue}/versions`,
2911+
auth: props.auth
2912+
});
2913+
});
2914+
});
2915+
});
2916+
2917+
describe('.getLedgerInstanceVersion', () => {
2918+
it('generates request', () => {
2919+
return api.getLedgerInstanceVersion(propsWithOrg).then((results) => {
2920+
results.should.match({
2921+
method: 'get',
2922+
uri: `/v1/orgs/${org}/ledgers/${props.ledgerName}/instances/${props.scopeValue}/versions/${props.version}`,
2923+
auth: props.auth
2924+
});
2925+
});
2926+
});
2927+
});
29042928
});
29052929

29062930
describe('backwards-compatibility function aliases', () => {

0 commit comments

Comments
 (0)