Skip to content

Commit

Permalink
Add bare minimum test
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany committed Aug 26, 2024
1 parent c93bf23 commit 70a1be6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions pkg/launcher/paths_other_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//go:build !windows
// +build !windows

package launcher

import (
"path/filepath"
"testing"

"github.com/stretchr/testify/require"
)

func TestDetermineRootDirectoryOverride(t *testing.T) {
t.Parallel()

// On non-Windows OSes, we don't override the root directory -- confirm we always return
// optsRootDir instead of an override
optsRootDir := filepath.Join("some", "dir", "somewhere")
require.Equal(t, optsRootDir, DetermineRootDirectoryOverride(optsRootDir, "", ""))
}

0 comments on commit 70a1be6

Please sign in to comment.