mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Some small refactorings
This commit is contained in:
parent
c2927e105b
commit
d481864035
10 changed files with 137 additions and 94 deletions
|
@ -190,7 +190,7 @@ var _ = Describe("UserRepository", func() {
|
|||
Expect(err.(*rest.ValidationError).Errors).To(HaveKeyWithValue("userName", "ra.validation.unique"))
|
||||
})
|
||||
It("returns generic error if repository call fails", func() {
|
||||
repo.Err = errors.New("fake error")
|
||||
repo.Error = errors.New("fake error")
|
||||
|
||||
var newUser = &model.User{ID: "2", UserName: "newuser"}
|
||||
err := validateUsernameUnique(repo, newUser)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue