forked from mirrors/homebox
feat: items-editor (#5)
* format readme * update logo * format html * add logo to docs * repository for document and document tokens * add attachments type and repository * autogenerate types via scripts * use autogenerated types * attachment type updates * add insured and quantity fields for items * implement HasID interface for entities * implement label updates for items * implement service update method * WIP item update client side actions * check err on attachment * finish types for basic items editor * remove unused var * house keeping
This commit is contained in:
parent
fbc364dcd2
commit
95ab14b866
125 changed files with 15626 additions and 1791 deletions
|
@ -25,7 +25,7 @@ func Test_GetRandomString(t *testing.T) {
|
|||
faker := NewFaker()
|
||||
|
||||
for i := 0; i < Loops; i++ {
|
||||
generated[i] = faker.RandomString(10)
|
||||
generated[i] = faker.Str(10)
|
||||
}
|
||||
|
||||
if !ValidateUnique(generated) {
|
||||
|
@ -41,7 +41,7 @@ func Test_GetRandomEmail(t *testing.T) {
|
|||
faker := NewFaker()
|
||||
|
||||
for i := 0; i < Loops; i++ {
|
||||
generated[i] = faker.RandomEmail()
|
||||
generated[i] = faker.Email()
|
||||
}
|
||||
|
||||
if !ValidateUnique(generated) {
|
||||
|
@ -58,7 +58,7 @@ func Test_GetRandomBool(t *testing.T) {
|
|||
faker := NewFaker()
|
||||
|
||||
for i := 0; i < Loops; i++ {
|
||||
if faker.RandomBool() {
|
||||
if faker.Bool() {
|
||||
trues++
|
||||
} else {
|
||||
falses++
|
||||
|
@ -81,7 +81,7 @@ func Test_RandomNumber(t *testing.T) {
|
|||
last := MIN - 1
|
||||
|
||||
for i := 0; i < Loops; i++ {
|
||||
n := f.RandomNumber(MIN, MAX)
|
||||
n := f.Num(MIN, MAX)
|
||||
|
||||
if n == last {
|
||||
t.Errorf("RandomNumber() failed to generate unique number")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue