mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 04:19:41 -08:00
40 lines
757 B
Go
Executable file
40 lines
757 B
Go
Executable file
// +build windows
|
|
|
|
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",
|
|
}
|
|
assert.Equal(t, expected, s.string())
|
|
}
|
|
|
|
func TestSpotifyStringPausedSong(t *testing.T) {
|
|
expected := "\uF8E3 Candlemass - Spellbreaker"
|
|
s := &spotify{
|
|
artist: "Candlemass",
|
|
track: "Spellbreaker",
|
|
status: "paused",
|
|
}
|
|
assert.Equal(t, expected, s.string())
|
|
}
|
|
|
|
func TestSpotifyStringStoppedSong(t *testing.T) {
|
|
expected := "\uf04d "
|
|
s := &spotify{
|
|
artist: "Candlemass",
|
|
track: "Spellbreaker",
|
|
status: "stopped",
|
|
}
|
|
assert.Equal(t, expected, s.string())
|
|
}
|