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

Changing our tests to use latest 2 Go versions #2038

Merged
merged 1 commit into from
Sep 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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">`)
}