Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
vvillait88 committed Dec 16, 2024
1 parent 9b66310 commit 725d76b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,23 @@ describe('Autocomplete', () => {
}
});

it('Should Return Autocomplete for `class` field', async () => {
const autocompleteClassParams = {
field: 'class',
text: 'product',
updated_title_roles: true,
};

try {
const response = await PDLJSClient.autocomplete(autocompleteClassParams);

expect(response.status).to.equal(200);
expect(response).to.be.a('object');
} catch (error) {
expect(error).to.be.null();
}
});

it('Should Error for Autocomplete', async () => {
try {
const response = await PDLJSClient.autocomplete();
Expand Down

0 comments on commit 725d76b

Please sign in to comment.