Skip to content

Commit a96317e

Browse files
committed
tests: Rename tests
1 parent 6fbe554 commit a96317e

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tests/syscalljs_test.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ import (
99
"testing"
1010
)
1111

12-
func TestSyscallJsNull(t *testing.T) {
12+
func TestSyscallJSNull(t *testing.T) {
1313
want := "null"
1414
if got := js.Null().String(); got != want {
1515
t.Errorf("got %#v, want %#v", got, want)
1616
}
1717
}
1818

19-
func TestSyscallJsFuncOf(t *testing.T) {
19+
func TestSyscallJSFuncOf(t *testing.T) {
2020
c := js.FuncOf(func(this js.Value, args []js.Value) interface{} {
2121
return args[0].Int() + args[1].Int()
2222
})
@@ -29,7 +29,7 @@ func TestSyscallJsFuncOf(t *testing.T) {
2929
}
3030
}
3131

32-
func TestSyscallJsFuncOfObject(t *testing.T) {
32+
func TestSyscallJSFuncOfObject(t *testing.T) {
3333
c := js.FuncOf(func(this js.Value, args []js.Value) interface{} {
3434
return args[0].Get("foo").String()
3535
})
@@ -42,7 +42,7 @@ func TestSyscallJsFuncOfObject(t *testing.T) {
4242
}
4343
}
4444

45-
func TestSyscallJsString(t *testing.T) {
45+
func TestSyscallJSString(t *testing.T) {
4646
obj := js.Global().Call("eval", "'Hello'")
4747
got := obj.String()
4848
if want := "Hello"; got != want {
@@ -56,7 +56,7 @@ func TestSyscallJsString(t *testing.T) {
5656
}
5757
}
5858

59-
func TestSyscallJsInt64(t *testing.T) {
59+
func TestSyscallJSInt64(t *testing.T) {
6060
var i int64 = math.MaxInt64
6161
got := js.ValueOf(i).String()
6262
// js.Value keeps the value only in 53-bit precision.
@@ -65,7 +65,7 @@ func TestSyscallJsInt64(t *testing.T) {
6565
}
6666
}
6767

68-
func TestSyscallJsInstanceOf(t *testing.T) {
68+
func TestSyscallJSInstanceOf(t *testing.T) {
6969
arr := js.Global().Call("eval", "[]")
7070
got := arr.InstanceOf(js.Global().Call("eval", "Array"))
7171
want := true
@@ -105,7 +105,7 @@ func TestSyscallJsInstanceOf(t *testing.T) {
105105
}
106106
}
107107

108-
func TestSyscallJsTypedArrayOf(t *testing.T) {
108+
func TestSyscallJSTypedArrayOf(t *testing.T) {
109109
testTypedArrayOf(t, "[]int8", []int8{0, -42, 0}, -42)
110110
testTypedArrayOf(t, "[]int16", []int16{0, -42, 0}, -42)
111111
testTypedArrayOf(t, "[]int32", []int32{0, -42, 0}, -42)
@@ -135,7 +135,7 @@ func testTypedArrayOf(t *testing.T, name string, slice interface{}, want float64
135135
})
136136
}
137137

138-
func TestSyscallJsType(t *testing.T) {
138+
func TestSyscallJSType(t *testing.T) {
139139
if got, want := js.Undefined().Type(), js.TypeUndefined; got != want {
140140
t.Errorf("got %s, want %s", got, want)
141141
}
@@ -162,7 +162,7 @@ func TestSyscallJsType(t *testing.T) {
162162
}
163163
}
164164

165-
func TestSyscallJsValueOf(t *testing.T) {
165+
func TestSyscallJSValueOf(t *testing.T) {
166166
JSON := js.Global().Get("JSON")
167167
for _, test := range []struct {
168168
in interface{}
@@ -218,7 +218,7 @@ func TestSyscallJsValueOf(t *testing.T) {
218218
}
219219
}
220220

221-
func TestSyscallJsFuncObject(t *testing.T) {
221+
func TestSyscallJSFuncObject(t *testing.T) {
222222
got := ""
223223
f := js.FuncOf(func(this js.Value, args []js.Value) interface{} {
224224
got = args[0].Get("foo").String() + this.Get("name").String()
@@ -238,7 +238,7 @@ func TestSyscallJsFuncObject(t *testing.T) {
238238
}
239239
}
240240

241-
func TestSyscallJsValueOfFunc(t *testing.T) {
241+
func TestSyscallJSValueOfFunc(t *testing.T) {
242242
f := js.FuncOf(func(this js.Value, args []js.Value) interface{} { return nil })
243243
got := js.ValueOf(f).Type()
244244
want := js.TypeFunction
@@ -247,7 +247,7 @@ func TestSyscallJsValueOfFunc(t *testing.T) {
247247
}
248248
}
249249

250-
func TestSyscallJsTruthy(t *testing.T) {
250+
func TestSyscallJSTruthy(t *testing.T) {
251251
for _, test := range []struct {
252252
in interface{}
253253
want bool

0 commit comments

Comments
 (0)