Skip to content

Commit 3c43dd4

Browse files
committed
fix tests
1 parent f581ce9 commit 3c43dd4

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

tests/build_tests/super_errors/expected/warnings4.res.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
9 │ @val external x: myType = "myVariable"
66
10 │
77
11 │ switch x {
8-
12 │ | #first => Js.log("first")
8+
12 │ | #first => Console.log("first")
99
13 │ }
1010
14 │
1111

tests/build_tests/super_errors/expected/warnings5.res.expected

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
10 │
66
11 │ switch y {
7-
12 │ | {otherValue: false} => Js.log("first")
7+
12 │ | {otherValue: false} => Console.log("first")
88
13 │ }
99
14 │
1010

@@ -18,7 +18,7 @@ Either bind these labels explicitly or add ', _' to the pattern.
1818
9 │ @val external y: someRecord = "otherVariable"
1919
10 │
2020
11 │ switch y {
21-
12 │ | {otherValue: false} => Js.log("first")
21+
12 │ | {otherValue: false} => Console.log("first")
2222
13 │ }
2323
14 │
2424
15 │ switch y {
@@ -32,7 +32,7 @@ Either bind these labels explicitly or add ', _' to the pattern.
3232

3333
14 │
3434
15 │ switch y {
35-
16 │ | {typ: WithPayload(true)} => Js.log("first")
35+
16 │ | {typ: WithPayload(true)} => Console.log("first")
3636
17 │ }
3737
18 │
3838

@@ -46,7 +46,7 @@ Either bind these labels explicitly or add ', _' to the pattern.
4646
13 │ }
4747
14 │
4848
15 │ switch y {
49-
16 │ | {typ: WithPayload(true)} => Js.log("first")
49+
16 │ | {typ: WithPayload(true)} => Console.log("first")
5050
17 │ }
5151
18 │
5252
19 │ let arr = [1]
@@ -62,7 +62,7 @@ Either bind these labels explicitly or add ', _' to the pattern.
6262
19 │ let arr = [1]
6363
20 │
6464
21 │ switch arr {
65-
22 │ | [] => Js.log("")
65+
22 │ | [] => Console.log("")
6666
23 │ }
6767
24 │
6868
25 │ switch arr {
@@ -77,7 +77,7 @@ Either bind these labels explicitly or add ', _' to the pattern.
7777
23 │ }
7878
24 │
7979
25 │ switch arr {
80-
26 │ | [one] => Js.log(one)
80+
26 │ | [one] => Console.log(one)
8181
27 │ }
8282
28 │
8383
29 │ switch arr {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
let f = (a, b) => a + b
22

3-
f(2, 2)->Js.log
3+
f(2, 2)->Console.log
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
let handle = (ev: [#Click | #KeyDown]) =>
22
switch ev {
3-
| #Click => Js.log("clicked")
4-
| #KeyDown => Js.log("key down")
3+
| #Click => Console.log("clicked")
4+
| #KeyDown => Console.log("key down")
55
}
66

77
let _ = handle(#Resize)

tests/build_tests/super_errors/fixtures/warnings4.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ type myType = [
99
@val external x: myType = "myVariable"
1010

1111
switch x {
12-
| #first => Js.log("first")
12+
| #first => Console.log("first")
1313
}

tests/build_tests/super_errors/fixtures/warnings5.res

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ type someRecord = {
99
@val external y: someRecord = "otherVariable"
1010

1111
switch y {
12-
| {otherValue: false} => Js.log("first")
12+
| {otherValue: false} => Console.log("first")
1313
}
1414

1515
switch y {
16-
| {typ: WithPayload(true)} => Js.log("first")
16+
| {typ: WithPayload(true)} => Console.log("first")
1717
}
1818

1919
let arr = [1]
2020

2121
switch arr {
22-
| [] => Js.log("")
22+
| [] => Console.log("")
2323
}
2424

2525
switch arr {
26-
| [one] => Js.log(one)
26+
| [one] => Console.log(one)
2727
}
2828

2929
switch arr {

0 commit comments

Comments
 (0)