oh-my-posh/segment_shell_test.go
2020-09-24 19:34:19 +02:00

20 lines
332 B
Go
Executable file

package main
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestWriteCurrentShell(t *testing.T) {
expected := "zsh"
env := new(MockedEnvironment)
env.On("getShellName", nil).Return(expected, nil)
props := &properties{}
s := &shell{
env: env,
props: props,
}
assert.Equal(t, expected, s.string())
}