forked from mirrors/homebox
chore: developer cleanup (#300)
* new PR tasks * add homebox to know words * formatting * bump deps * generate db models * ts errors * drop id * fix accessor * drop unused time field * change CI * add expected error * add type check * resolve serveral type errors * hoise in CI
This commit is contained in:
parent
88f9ff90d4
commit
bd321af29f
142 changed files with 817 additions and 1200 deletions
|
@ -20,7 +20,7 @@ func ValidateUnique(values []string) bool {
|
|||
func Test_GetRandomString(t *testing.T) {
|
||||
t.Parallel()
|
||||
// Test that the function returns a string of the correct length
|
||||
var generated = make([]string, Loops)
|
||||
generated := make([]string, Loops)
|
||||
|
||||
faker := NewFaker()
|
||||
|
||||
|
@ -36,7 +36,7 @@ func Test_GetRandomString(t *testing.T) {
|
|||
func Test_GetRandomEmail(t *testing.T) {
|
||||
t.Parallel()
|
||||
// Test that the function returns a string of the correct length
|
||||
var generated = make([]string, Loops)
|
||||
generated := make([]string, Loops)
|
||||
|
||||
faker := NewFaker()
|
||||
|
||||
|
@ -52,8 +52,8 @@ func Test_GetRandomEmail(t *testing.T) {
|
|||
func Test_GetRandomBool(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
var trues = 0
|
||||
var falses = 0
|
||||
trues := 0
|
||||
falses := 0
|
||||
|
||||
faker := NewFaker()
|
||||
|
||||
|
@ -91,5 +91,4 @@ func Test_RandomNumber(t *testing.T) {
|
|||
t.Errorf("RandomNumber() failed to generate a number between %v and %v", MIN, MAX)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue