Skip to content

Commit

Permalink
fix tests that reference dev server
Browse files Browse the repository at this point in the history
  • Loading branch information
torenware committed Jul 22, 2022
1 parent 5490be0 commit 385bcf5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func TestDevServer(t *testing.T) {
t.Fatalf("tags did not render: %s", err)
}
// t.Logf("tags: %s", string(tags))
shouldContain = "http://localhost:5173/main.ts"
shouldContain = "http://localhost:5137/main.ts"
if !strings.Contains(string(tags), shouldContain) {
t.Fatalf("tags did not contain '%s'", shouldContain)
}
Expand Down
18 changes: 9 additions & 9 deletions utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ func TestDefaultParams(t *testing.T) {
typescript bool
entryPt string
}{
{"package-preact-ts.json", "preact", "3", "5173", true, "src/main.tsx"},
{"package-react-ts.json", "react", "3", "5173", true, "src/main.tsx"},
{"package-react.json", "react", "3", "5173", false, "src/main.jsx"},
{"package-svelte-ts.json", "svelte", "3", "5173", true, "src/main.ts"},
{"package-svelte.json", "svelte", "3", "5173", false, "src/main.js"},
{"package-vanilla-ts.json", "vanilla", "3", "5173", true, "src/main.ts"},
{"package-vanilla.json", "vanilla", "3", "5173", false, "main.js"},
{"package-vue-ts.json", "vue", "3", "5173", true, "src/main.ts"},
{"package-preact-ts.json", "preact", "3", "5137", true, "src/main.tsx"},
{"package-react-ts.json", "react", "3", "5137", true, "src/main.tsx"},
{"package-react.json", "react", "3", "5137", false, "src/main.jsx"},
{"package-svelte-ts.json", "svelte", "3", "5137", true, "src/main.ts"},
{"package-svelte.json", "svelte", "3", "5137", false, "src/main.js"},
{"package-vanilla-ts.json", "vanilla", "3", "5137", true, "src/main.ts"},
{"package-vanilla.json", "vanilla", "3", "5137", false, "main.js"},
{"package-vue-ts.json", "vue", "3", "5137", true, "src/main.ts"},
{"package-vue-v2.json", "vue", "2", "3000", false, "src/main.js"},
{"package-vue3.json", "vue", "3", "5173", false, "src/main.js"},
{"package-vue3.json", "vue", "3", "5137", false, "src/main.js"},
}

for _, test := range tstList {
Expand Down

0 comments on commit 385bcf5

Please sign in to comment.