@@ -15,21 +15,22 @@ func (suite *MethodTestSuite) TestFile() {
15
15
return methodCase (values (database.GetFileByHashAndCreatorParams {
16
16
Hash : f .Hash ,
17
17
CreatedBy : f .CreatedBy ,
18
- }), asserts (f , rbac .ActionRead ))
18
+ }), asserts (f , rbac .ActionRead ), values (database. File {}) )
19
19
})
20
20
})
21
21
suite .Run ("GetFileByID" , func () {
22
22
suite .RunMethodTest (func (t * testing.T , db database.Store ) MethodCase {
23
23
f := dbgen .File (t , db , database.File {})
24
- return methodCase (values (f .ID ), asserts (f , rbac .ActionRead ))
24
+ return methodCase (values (f .ID ), asserts (f , rbac .ActionRead ), values (database. File {}) )
25
25
})
26
26
})
27
27
suite .Run ("InsertFile" , func () {
28
28
suite .RunMethodTest (func (t * testing.T , db database.Store ) MethodCase {
29
29
u := dbgen .User (t , db , database.User {})
30
30
return methodCase (values (database.InsertFileParams {
31
31
CreatedBy : u .ID ,
32
- }), asserts (rbac .ResourceFile .WithOwner (u .ID .String ()), rbac .ActionCreate ))
32
+ }), asserts (rbac .ResourceFile .WithOwner (u .ID .String ()), rbac .ActionCreate ),
33
+ values (database.File {}))
33
34
})
34
35
})
35
36
}
0 commit comments