github.com/olli-ai/jx/v2@v2.0.400-0.20210921045218-14731b4dd448/pkg/util/system/version_test.go (about) 1 // +build unit 2 3 package system 4 5 import ( 6 "testing" 7 8 "github.com/stretchr/testify/assert" 9 ) 10 11 func TestGetOsVersionReturnsNoError(t *testing.T) { 12 t.Parallel() 13 ver, err := GetOsVersion() 14 assert.NoError(t, err) 15 assert.NotNil(t, ver) 16 assert.NotEmpty(t, ver) 17 //assert.Equal(t, "Windows 10 Pro 1803 build 17134", ver) 18 }