Skip to content

Commit 8ee2839

Browse files
committed
fix: correct namespace tests
1 parent 15f7122 commit 8ee2839

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ repos:
6868
# alternative targets, or cross-compilation.
6969

7070
- id: cargo-test
71-
name: cargo test (unit tests)
72-
entry: cargo nextest run --workspace --profile pre-commit -E 'not kind(test)'
71+
name: cargo test
72+
entry: cargo nextest run --workspace --profile pre-commit
7373
language: system
7474
types: [rust]
7575
pass_filenames: false

crates/auths-core/tests/cases/namespace.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -188,40 +188,40 @@ fn namespace_verify_error_codes() {
188188
ecosystem: Ecosystem::Npm,
189189
package_name: "test".to_string(),
190190
},
191-
"AUTHS-E4402",
191+
"AUTHS-E3962",
192192
),
193193
(
194194
NamespaceVerifyError::OwnershipNotConfirmed {
195195
ecosystem: Ecosystem::Npm,
196196
package_name: "test".to_string(),
197197
},
198-
"AUTHS-E4403",
198+
"AUTHS-E3963",
199199
),
200-
(NamespaceVerifyError::ChallengeExpired, "AUTHS-E4404"),
200+
(NamespaceVerifyError::ChallengeExpired, "AUTHS-E3964"),
201201
(
202202
NamespaceVerifyError::InvalidToken {
203203
reason: "test".to_string(),
204204
},
205-
"AUTHS-E4405",
205+
"AUTHS-E3965",
206206
),
207207
(
208208
NamespaceVerifyError::InvalidPackageName {
209209
name: "test".to_string(),
210210
reason: "test".to_string(),
211211
},
212-
"AUTHS-E4406",
212+
"AUTHS-E3966",
213213
),
214214
(
215215
NamespaceVerifyError::NetworkError {
216216
message: "test".to_string(),
217217
},
218-
"AUTHS-E4407",
218+
"AUTHS-E3967",
219219
),
220220
(
221221
NamespaceVerifyError::RateLimited {
222222
ecosystem: Ecosystem::Npm,
223223
},
224-
"AUTHS-E4408",
224+
"AUTHS-E3968",
225225
),
226226
];
227227

0 commit comments

Comments
 (0)