From 13322edf37510b6d3bb68a853368fd1a0a67a105 Mon Sep 17 00:00:00 2001 From: Philipp Tanlak Date: Mon, 20 Nov 2023 17:07:28 +0100 Subject: Gracefully handle NaN and Inf values (#21) --- js_lib_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'js_lib_test.go') 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('
Hello world
') 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{ -- cgit v1.2.3