Rename user stats parameters

This commit is contained in:
Ajay Ramachandran
2021-09-15 20:44:20 -04:00
parent 18c1735087
commit 4d9e595470
2 changed files with 10 additions and 10 deletions

View File

@@ -32,7 +32,7 @@ describe("getUserStats", () => {
});
it("Should be able to get all user info", (done: Done) => {
fetch(`${getbaseURL()}/api/userStats?userID=getuserstats_user_01&categoryStats=true&typeStats=true`)
fetch(`${getbaseURL()}/api/userStats?userID=getuserstats_user_01&fetchCategoryStats=true&fetchActionTypeStats=true`)
.then(async res => {
assert.strictEqual(res.status, 200);
const expected = {
@@ -109,7 +109,7 @@ describe("getUserStats", () => {
});
it("Should get parts of extra stats if not requested", (done: Done) => {
fetch(`${getbaseURL()}/api/userStats?userID=getuserstats_user_01&typeStats=true`)
fetch(`${getbaseURL()}/api/userStats?userID=getuserstats_user_01&fetchActionTypeStats=true`)
.then(async res => {
assert.strictEqual(res.status, 200);
const data = await res.json();