diff options
| author | Philipp Tanlak <philipp.tanlak@gmail.com> | 2023-11-20 17:07:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-20 17:07:28 +0100 |
| commit | 13322edf37510b6d3bb68a853368fd1a0a67a105 (patch) | |
| tree | af325e934f95deeee44cbdd126100dff912f0e5a /js_lib_test.go | |
| parent | 47d58e6e0ebc44e7c00dffcc3b892932dc70eb3a (diff) | |
Gracefully handle NaN and Inf values (#21)
Diffstat (limited to 'js_lib_test.go')
| -rw-r--r-- | js_lib_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js_lib_test.go b/js_lib_test.go index e375308..20e39da 100644 --- a/js_lib_test.go +++ b/js_lib_test.go @@ -20,6 +20,8 @@ func TestJSLibParse(t *testing.T) { const doc = parse('<div class=foo>Hello world</div>') export const text = doc.find(".foo").text() + + export default function () {} ` client := &http.Client{ @@ -45,6 +47,8 @@ func TestJSLibHTTPGet(t *testing.T) { export const status = res.status; export const error = res.error; export const headers = res.headers; + + export default function () {} ` client := &http.Client{ @@ -86,6 +90,8 @@ func TestJSLibHTTPPostForm(t *testing.T) { export const status = res.status; export const error = res.error; export const headers = res.headers; + + export default function () {} ` client := &http.Client{ @@ -134,6 +140,8 @@ func TestJSLibHTTPPostJSON(t *testing.T) { export const status = res.status; export const error = res.error; export const headers = res.headers; + + export default function () {} ` client := &http.Client{ |