We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2391140 commit 626625cCopy full SHA for 626625c
tests/feature/support_test.go
@@ -1,12 +1,9 @@
1
package feature
2
3
import (
4
- "fmt"
5
- "os"
6
"strings"
7
"testing"
8
9
- "github.com/goravel/framework/support"
10
"github.com/goravel/framework/support/path"
11
"github.com/stretchr/testify/assert"
12
)
@@ -20,16 +17,3 @@ func TestPathResource(t *testing.T) {
20
17
assert.True(t, strings.HasPrefix(resourcePath, "/"))
21
18
assert.True(t, strings.HasSuffix(resourcePath, "/resources/test.txt"))
22
19
}
23
-
24
-func TestChangeChdir(t *testing.T) {
25
- info, err := os.Stat("go.mod")
26
- assert.Nil(t, info)
27
- assert.Error(t, err)
28
29
- fmt.Println(support.RelativePath)
30
- t.Chdir(support.RelativePath)
31
32
- info, err = os.Stat("go.mod")
33
- assert.NotNil(t, info)
34
- assert.Nil(t, err)
35
-}
0 commit comments