mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Backend: Add unit tests for internal/workers
This commit is contained in:
@@ -35,3 +35,12 @@ func TestPrism_Start(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestMeta_originalsPath(t *testing.T) {
|
||||
conf := config.TestConfig()
|
||||
|
||||
worker := NewMeta(conf)
|
||||
|
||||
assert.IsType(t, &Meta{}, worker)
|
||||
assert.Equal(t, "/go/src/github.com/photoprism/photoprism/storage/testdata/originals", worker.originalsPath())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user