mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-16 10:55:55 -07:00
feat: version v0.0.2
This commit is contained in:
parent
0dceaf017a
commit
7ff317756f
36 changed files with 336 additions and 160 deletions
|
|
@ -198,6 +198,13 @@ func TestTrackAliases(t *testing.T) {
|
|||
err = store.SetPrimaryTrackAlias(ctx, 1, "Fake Alias")
|
||||
require.Error(t, err)
|
||||
|
||||
// Ensure primary alias cannot be deleted
|
||||
err = store.DeleteTrackAlias(ctx, track.ID, "Alias One")
|
||||
require.NoError(t, err) // shouldn't error when nothing is deleted
|
||||
track, err = store.GetTrack(ctx, db.GetTrackOpts{ID: 1})
|
||||
require.NoError(t, err)
|
||||
assert.Equal(t, "Alias One", track.Title)
|
||||
|
||||
store.SetPrimaryTrackAlias(ctx, 1, "Track One")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue