Backend: Add tests to internal/entity

This commit is contained in:
Theresa Gresch
2020-05-18 16:37:28 +02:00
parent a2d5da7afd
commit 1fdc2cf610
3 changed files with 7 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ func TestNewFileSync(t *testing.T) {
}
func TestFileSync_FirstOrCreate(t *testing.T) {
fileSync := &FileSync{AccountID: 123}
fileSync := &FileSync{AccountID: 123, FileID: 888, RemoteName: "test123"}
r := fileSync.FirstOrCreate()
assert.Equal(t, uint(0x7b), r.AccountID)
}