Skip to content

Commit bc2065b

Browse files
committed
Simplified test case
1 parent 495bdb3 commit bc2065b

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#### :boom: Breaking Change
1515

1616
- Corrected return type of `getPropertyValue` for CSS style attributes (it's nullable and now returns an option).
17-
- Corrected signature of `toggleForced` (for `Dom.domTokenList`) to accept a bool denoting whether to toggle the class on or off.
17+
- Corrected signature of `toggleForced` (for `Dom.domTokenList`) to accept a bool denoting whether to toggle the class on or off. https://github.com/TheSpyder/rescript-webapi/pull/136
1818

1919
#### :bug: Bug Fix
2020

lib/js/tests/Webapi/Dom/Webapi__Dom__DomTokenList__test.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ var supports = tlist.supports("my-class");
2828

2929
var toggle = tlist.toggle("my-class");
3030

31-
var toggleForced_true = tlist.toggle("my-class", true);
32-
33-
var toggleForced_false = tlist.toggle("my-class", false);
31+
var toggleForced = tlist.toggle("my-class", false);
3432

3533
var toString = tlist.toString();
3634

@@ -48,8 +46,7 @@ exports.item = item$1;
4846
exports.contains = contains;
4947
exports.supports = supports;
5048
exports.toggle = toggle;
51-
exports.toggleForced_true = toggleForced_true;
52-
exports.toggleForced_false = toggleForced_false;
49+
exports.toggleForced = toggleForced;
5350
exports.toString = toString;
5451
exports.value = value;
5552
exports.setValue = setValue;

tests/Webapi/Dom/Webapi__Dom__DomTokenList__test.res

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ tlist->removeMany(["my-class", "my-other-class"])
1515
tlist->replace("my-class", "my-other-class")
1616
let supports: bool = tlist->supports("my-class")
1717
let toggle: bool = tlist->toggle("my-class")
18-
let toggleForced_true: bool = tlist->toggleForced("my-class", true)
19-
let toggleForced_false: bool = tlist->toggleForced("my-class", false)
18+
let toggleForced: bool = tlist->toggleForced("my-class", false)
2019
let toString: string = tlist->toString
2120
let value: string = tlist->value
22-
let setValue: unit = tlist->setValue("foo")
21+
let setValue: unit = tlist->setValue("foo")

0 commit comments

Comments
 (0)