Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
moving to latest 2 go versions (#2038)
Browse files Browse the repository at this point in the history
  • Loading branch information
paganotoni authored Sep 4, 2020
1 parent 4643bad commit 39711ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
go-version: [1.13.x, 1.14.x]
go-version: [1.14.x, 1.15.x]
os: [macos-latest, windows-latest, ubuntu-latest]
env:
GO111MODULE: on
Expand Down
7 changes: 5 additions & 2 deletions render/js_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ func Test_JavaScript_HTML_Partial(t *testing.T) {
bb := &bytes.Buffer{}

r.NoError(h.Render(bb, Data{}))
pre := `let a = "\x3Cdiv`
r.True(strings.HasPrefix(bb.String(), pre))
r.Contains(bb.String(), `id`)
r.Contains(bb.String(), `foo`)

// To check it has escaped the partial
r.NotContains(bb.String(), `<div id="foo">`)
}

0 comments on commit 39711ae

Please sign in to comment.