Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated search assertions on some search tests / throttle tests (mocks and assertions) #649

Merged
merged 23 commits into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
6bda416
Fixed code and unit tests
jbigman Jul 26, 2023
ccb3bb4
Bump semver from 6.3.0 to 6.3.1 and word-wrap from 1.2.3 to 1.2.4
jbigman Jul 26, 2023
afca862
String optimisation
jbigman Jul 26, 2023
32c4b00
Use https://yesno.wtf/api for throttle tests
jbigman Jul 26, 2023
3c9ba74
Set timeout to 18000ms: (3 times 5000ms + margin)
jbigman Jul 26, 2023
e6467c4
Set timeout to 30000ms: because we can't ensure called rest services…
jbigman Jul 26, 2023
e49ac11
Rerun checks
jbigman Jul 26, 2023
f09e537
Create main.yml
jbigman Jul 27, 2023
505b4ef
Added logs to understand why check fails
jbigman Jul 27, 2023
4cdf2b3
Added logs to understand why check fails
jbigman Jul 27, 2023
9f098cc
Removed logs
jbigman Jul 27, 2023
378a71f
Updated expected result for more reliable ones
jbigman Jul 27, 2023
74cd435
39aaa8a9(Node version 12.x and 14.x are not supported anymore: https:…
jbigman Jul 28, 2023
b7dfebd
Updated should return apps from suggested search in european country …
jbigman Jul 28, 2023
86395bf
Updated assertions "search with german language"
jbigman Jul 28, 2023
2b40f86
Merge branch 'facundoolano:main' into main
jbigman Aug 2, 2023
93ce5df
Fixed throttle tests (add mocks and updated expected results)
jbigman Aug 3, 2023
c336f83
Fixed eslint eol-last
jbigman Aug 3, 2023
55d435f
Fixed gmail search assertions
jbigman Aug 3, 2023
3364f8a
Moved sinon in dev dependencies, updated throttle tests with a 1000ms…
jbigman Aug 3, 2023
73d3732
Fixed eslint
jbigman Aug 3, 2023
f16c23a
Moved sinon in dev dependencies, updated throttle tests with a 1000ms…
jbigman Aug 3, 2023
d944ed0
Updated throttle to 2000ms interval and assertions checks results +/-…
jbigman Aug 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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