Skip to content

Commit

Permalink
chore: fix casing of files in test
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h committed Sep 26, 2024
1 parent bd0e848 commit f5e2469
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.778
0.2.786
6 changes: 3 additions & 3 deletions cmd/templ/lspcmd/lsp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,11 @@ func TestReferences(t *testing.T) {
// this test is for inclusions from a remote file that has not been explicitly called with didOpen
line: 3,
character: 9,
filename: "/remoteChild.templ",
filename: "/remotechild.templ",
assert: func(t *testing.T, actual []protocol.Location) (msg string, ok bool) {
expectedReference := []protocol.Location{
{
URI: uri.URI("file://" + appDir + "/remoteParent.templ"),
URI: uri.URI("file://" + appDir + "/remoteparent.templ"),
Range: protocol.Range{
Start: protocol.Position{
Line: uint32(3),
Expand All @@ -420,7 +420,7 @@ func TestReferences(t *testing.T) {
},
},
{
URI: uri.URI("file://" + appDir + "/remoteParent.templ"),
URI: uri.URI("file://" + appDir + "/remoteparent.templ"),
Range: protocol.Range{
Start: protocol.Position{
Line: uint32(7),
Expand Down
39 changes: 39 additions & 0 deletions cmd/templ/testproject/testdata/remotechild_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

68 changes: 68 additions & 0 deletions cmd/templ/testproject/testdata/remoteparent_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f5e2469

Please sign in to comment.