Skip to content

Commit

Permalink
Test: Added getEntity() checks
Browse files Browse the repository at this point in the history
  • Loading branch information
fvdm committed Oct 7, 2021
1 parent 50f304c commit a05e418
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,28 @@ dotest.add ('getRecordThumbnailUrl', async test => {
});


dotest.add ('getEntity', async test => {
try {
const data = await app.getEntity({
type: 'agent',
scheme: 'base',
id: '147466',
});

test()
.isObject ('fail', 'data', data)
.isNotEmpty ('fail', 'data', data)
.isExactly ('fail', 'data.success', data && data.success, true)
.done()
;
}

catch (err) {
test (err).done();
}
});


dotest.add ('resolveEntity', async test => {
try {
const data = await app.resolveEntity({
Expand Down

0 comments on commit a05e418

Please sign in to comment.