Skip to content

Commit

Permalink
Simplify test invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
j2kun committed Jan 22, 2024
1 parent 30feac3 commit 5960baa
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions markup/goldmark/integration_test.go
Expand Up @@ -735,14 +735,7 @@ Inline equation that would be mangled by default parser: $a^*=x-b^*$
{{ .Content }}
`

b := hugolib.NewIntegrationTestBuilder(
hugolib.IntegrationTestConfig{
T: t,
TxtarString: files,
NeedsOsFS: false,
},
).Build()

b := hugolib.Test(t, files)
b.AssertFileContent("public/p1/index.html", `
$a^*=x-b^*$
`)
Expand Down Expand Up @@ -772,14 +765,7 @@ $$a^*=x-b^*$$
{{ .Content }}
`

b := hugolib.NewIntegrationTestBuilder(
hugolib.IntegrationTestConfig{
T: t,
TxtarString: files,
NeedsOsFS: false,
},
).Build()

b := hugolib.Test(t, files)
b.AssertFileContent("public/p1/index.html", `
$$a^*=x-b^*$
`)
Expand Down

0 comments on commit 5960baa

Please sign in to comment.