summaryrefslogtreecommitdiff
path: root/contrib/fs/dir_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/fs/dir_test.go')
-rw-r--r--contrib/fs/dir_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/fs/dir_test.go b/contrib/fs/dir_test.go
index 6b6f60f..a6b95cb 100644
--- a/contrib/fs/dir_test.go
+++ b/contrib/fs/dir_test.go
@@ -4,7 +4,6 @@ import (
"context"
"io"
"net/url"
- "os"
"testing"
"github.com/stretchr/testify/assert"
@@ -16,7 +15,7 @@ import (
)
func TestDirectoryDefault(t *testing.T) {
- handler := fs.GeminiDirectoryDefault(os.DirFS("testdata"), "index.gmi")
+ handler := fs.GeminiDirectoryDefault("testdata", "", "index.gmi")
tests := []struct {
url string
@@ -69,7 +68,7 @@ func TestDirectoryDefault(t *testing.T) {
}
func TestDirectoryListing(t *testing.T) {
- handler := fs.GeminiDirectoryListing(os.DirFS("testdata"), nil)
+ handler := fs.GeminiDirectoryListing("testdata", "", nil)
tests := []struct {
url string