Refactor part 2

This commit is contained in:
Aslan 2026-01-07 17:13:56 -05:00
parent e21a807fb3
commit 80196b732a
9 changed files with 78 additions and 25 deletions

View file

@ -91,6 +91,10 @@ test("can get user", async () => {
assert.equal(response.id, state.userId);
assert.equal(response.username, state.username);
assert.equal(response.email, state.email);
assert.equal(response.description, null);
assert.equal(response.admin, false);
assert.notEqual(response.registerDate, undefined);
assert.notEqual(response.lastLogin, undefined);
});
test("can modify user", async () => {
@ -113,6 +117,9 @@ test("can modify user", async () => {
assert.equal(responseGet.id, state.userId);
assert.equal(responseGet.email, state.email);
assert.equal(responseGet.description, state.description);
assert.equal(responseGet.admin, false);
assert.notEqual(responseGet.registerDate, undefined);
assert.notEqual(responseGet.lastLogin, undefined);
});
test("can get user sessions", async () => {