mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-14 23:14:05 -08:00
41 lines
810 B
Go
41 lines
810 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestSpotifyStringPlayingSong(t *testing.T) {
|
|
expected := "\ue602 Candlemass - Spellbreaker"
|
|
s := &spotify{
|
|
artist: "Candlemass",
|
|
track: "Spellbreaker",
|
|
status: "playing",
|
|
props: properties{},
|
|
}
|
|
assert.Equal(t, expected, s.string())
|
|
}
|
|
|
|
func TestSpotifyStringPausedSong(t *testing.T) {
|
|
expected := "\uF8E3 Candlemass - Spellbreaker"
|
|
s := &spotify{
|
|
artist: "Candlemass",
|
|
track: "Spellbreaker",
|
|
status: "paused",
|
|
props: properties{},
|
|
}
|
|
assert.Equal(t, expected, s.string())
|
|
}
|
|
|
|
func TestSpotifyStringStoppedSong(t *testing.T) {
|
|
expected := "\uf04d "
|
|
s := &spotify{
|
|
artist: "Candlemass",
|
|
track: "Spellbreaker",
|
|
status: "stopped",
|
|
props: properties{},
|
|
}
|
|
assert.Equal(t, expected, s.string())
|
|
}
|