Add unit tests for models and services
- Implemented unit tests for the Package model, covering methods such as generateId, findById, findByName, and version management. - Created unit tests for the Repository model, including repository creation, name validation, and retrieval methods. - Added tests for the Session model, focusing on session creation, validation, and invalidation. - Developed unit tests for the User model, ensuring user creation, password hashing, and retrieval methods function correctly. - Implemented AuthService tests, validating login, token refresh, and session management. - Added TokenService tests, covering token creation, validation, and revocation processes.
This commit is contained in:
16
deno.lock
generated
16
deno.lock
generated
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"version": "5",
|
||||
"specifiers": {
|
||||
"jsr:@std/assert@*": "1.0.16",
|
||||
"jsr:@std/assert@^1.0.15": "1.0.16",
|
||||
"jsr:@std/cli@^1.0.24": "1.0.24",
|
||||
"jsr:@std/encoding@1": "1.0.10",
|
||||
"jsr:@std/encoding@^1.0.10": "1.0.10",
|
||||
@@ -15,6 +17,7 @@
|
||||
"jsr:@std/path@1": "1.1.3",
|
||||
"jsr:@std/path@^1.1.3": "1.1.3",
|
||||
"jsr:@std/streams@^1.0.14": "1.0.14",
|
||||
"jsr:@std/testing@*": "1.0.16",
|
||||
"npm:@push.rocks/smartarchive@5": "5.0.1",
|
||||
"npm:@push.rocks/smartbucket@^4.3.0": "4.3.0",
|
||||
"npm:@push.rocks/smartcli@4": "4.0.19",
|
||||
@@ -34,6 +37,12 @@
|
||||
"npm:concurrently@^9.1.2": "9.2.1"
|
||||
},
|
||||
"jsr": {
|
||||
"@std/assert@1.0.16": {
|
||||
"integrity": "6a7272ed1eaa77defe76e5ff63ca705d9c495077e2d5fd0126d2b53fc5bd6532",
|
||||
"dependencies": [
|
||||
"jsr:@std/internal"
|
||||
]
|
||||
},
|
||||
"@std/cli@1.0.24": {
|
||||
"integrity": "b655a5beb26aa94f98add6bc8889f5fb9bc3ee2cc3fc954e151201f4c4200a5e"
|
||||
},
|
||||
@@ -84,6 +93,13 @@
|
||||
},
|
||||
"@std/streams@1.0.14": {
|
||||
"integrity": "c0df6cdd73bd4bbcbe4baa89e323b88418c90ceb2d926f95aa99bdcdbfca2411"
|
||||
},
|
||||
"@std/testing@1.0.16": {
|
||||
"integrity": "a917ffdeb5924c9be436dc78bc32e511760e14d3a96e49c607fc5ecca86d0092",
|
||||
"dependencies": [
|
||||
"jsr:@std/assert@^1.0.15",
|
||||
"jsr:@std/internal"
|
||||
]
|
||||
}
|
||||
},
|
||||
"npm": {
|
||||
|
||||
Reference in New Issue
Block a user