mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-14 23:14:05 -08:00
20 lines
332 B
Go
20 lines
332 B
Go
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())
|
|
}
|