mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-11-21 01:21:54 +08:00
fix(backend): fix tests
This commit is contained in:
parent
f513e2bd5d
commit
8f690a66d1
@ -63,14 +63,14 @@ class PermissionsControllerTest {
|
||||
|
||||
@Test
|
||||
void testHiddenProjectSeeHidden() throws Exception {
|
||||
this.mockMvc.perform(get("/api/v1/permissions/?author=paper&slug=Test")
|
||||
this.mockMvc.perform(get("/api/v1/permissions?author=paper&slug=Test")
|
||||
.header("Authorization", "HangarAuth " + this.getJwt(seeHidden)))
|
||||
.andExpect(jsonPath("$.permissionBinString").value("10000000000000000000000000"));
|
||||
}
|
||||
|
||||
@Test
|
||||
void testHiddenProjectProjectOnly() throws Exception {
|
||||
this.mockMvc.perform(get("/api/v1/permissions/?author=paper&slug=Test")
|
||||
this.mockMvc.perform(get("/api/v1/permissions?author=paper&slug=Test")
|
||||
.header("Authorization", "HangarAuth " + this.getJwt(projectOnly)))
|
||||
.andExpect(jsonPath("$.permissionBinString").value("100000000"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user