diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-05-30 18:05:23 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-05-30 18:26:03 +0200 |
commit | 4f00218d6d2bd6169b08e6c83cff52852e621985 (patch) | |
tree | 060fee0423694c714800990a79ad3997899f3848 /os_test.go | |
parent | e401d9e21bd3803d7d329ed8b7c831127f12832f (diff) |
Remove extension hack in ResolveModule.
Diffstat (limited to 'os_test.go')
-rw-r--r-- | os_test.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/os_test.go b/os_test.go index e04f8c820..d1ffd3e29 100644 --- a/os_test.go +++ b/os_test.go @@ -72,9 +72,8 @@ func TestResolveModule4(t *testing.T) { path.Join(SrcDir, "unpkg.com/liltest@0.0.5/index.ts")) } -func TestResolveModule5(t *testing.T) { +func TestResolveModuleExtensionsAintSpecial(t *testing.T) { createDirs() - // Files in SrcDir should resolve to URLs. moduleName, filename, err := ResolveModule( "./util", path.Join(SrcDir, "unpkg.com/liltest@0.0.5/index.ts")) @@ -82,7 +81,7 @@ func TestResolveModule5(t *testing.T) { t.Fatalf(err.Error()) } AssertEqual(t, moduleName, - "http://unpkg.com/liltest@0.0.5/util.ts") + "http://unpkg.com/liltest@0.0.5/util") AssertEqual(t, filename, - path.Join(SrcDir, "unpkg.com/liltest@0.0.5/util.ts")) + path.Join(SrcDir, "unpkg.com/liltest@0.0.5/util")) } |