Skip to content

Commit

Permalink
Updated search assertions on some search tests / throttle tests (mock…
Browse files Browse the repository at this point in the history
…s and assertions) (#649)
  • Loading branch information
jbigman authored Aug 4, 2023
1 parent 90cb467 commit 1405a43
Show file tree
Hide file tree
Showing 4 changed files with 255 additions and 29 deletions.
226 changes: 217 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"eslint-plugin-standard": "^4.0.0",
"mocha": "^9.1.4",
"promise-log": "^0.1.0",
"sinon": "^15.2.0",
"validator": "^13.7.0"
}
}
4 changes: 2 additions & 2 deletions test/lib.search.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe('Search method', () => {
return gplay.search({ term: 'netflix' })
.then((apps) => {
assert.equal(apps[0].appId, 'com.netflix.mediaclient');
assertIdsInArray(apps, 'com.netflix.ninja', 'com.netflix.NGP.Poinpy');
assert.isAbove(apps.length, 0);
});
});

Expand All @@ -85,7 +85,7 @@ describe('Search method', () => {
return gplay.search({ term: 'gmail' })
.then((apps) => {
assert.equal(apps[0].appId, 'com.google.android.gm');
assertIdsInArray(apps, 'com.google.android.gm.lite', 'com.google.android.apps.docs');
assert.isTrue(apps.some((app) => app.appId === 'com.google.android.gm.lite'));
});
});

Expand Down
Loading

0 comments on commit 1405a43

Please sign in to comment.