mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Test: Use PascalCase names for all Go subtests in /internal
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -20,7 +20,7 @@ func TestNewFileSync(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestFirstOrCreateFileSync(t *testing.T) {
|
||||
t.Run("not yet existing", func(t *testing.T) {
|
||||
t.Run("NotYetExisting", func(t *testing.T) {
|
||||
fileSync := &FileSync{ServiceID: 123, FileID: 888, RemoteName: "test123"}
|
||||
result := FirstOrCreateFileSync(fileSync)
|
||||
|
||||
@@ -36,7 +36,7 @@ func TestFirstOrCreateFileSync(t *testing.T) {
|
||||
t.Errorf("ServiceID should be the same: %d %d", result.ServiceID, fileSync.ServiceID)
|
||||
}
|
||||
})
|
||||
t.Run("existing", func(t *testing.T) {
|
||||
t.Run("Existing", func(t *testing.T) {
|
||||
fileSync := NewFileSync(778, "NameForRemote")
|
||||
result := FirstOrCreateFileSync(fileSync)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user