Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
notthetup committed Jan 31, 2025
1 parent 098b850 commit a2681af
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion gateways/js/test/spec/fjage.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,14 @@ describe('An AgentID setup to reject promises', function () {

it('should reject the promise if asked to get the value of unknown parameter', async function () {
const aid = new AgentID('S', false, gw);
await expectAsync(aid.get('k')).toBeRejected();
let p = aid.get('k');
console.log(p);
p.then(v => {
console.log(`Resolved: ${v}`);
}, err => {
console.log(`Rejected: ${err}`);
});
return expectAsync(aid.get('k')).toBeRejected();
});

it('should reject the promise if asked to set the value of unknown parameter', async function () {
Expand Down

0 comments on commit a2681af

Please sign in to comment.