Skip to content

Commit

Permalink
Simplified test case
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSpyder committed Oct 10, 2024
1 parent 495bdb3 commit bc2065b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#### :boom: Breaking Change

- Corrected return type of `getPropertyValue` for CSS style attributes (it's nullable and now returns an option).
- Corrected signature of `toggleForced` (for `Dom.domTokenList`) to accept a bool denoting whether to toggle the class on or off.
- 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

#### :bug: Bug Fix

Expand Down
7 changes: 2 additions & 5 deletions lib/js/tests/Webapi/Dom/Webapi__Dom__DomTokenList__test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ var supports = tlist.supports("my-class");

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

var toggleForced_true = tlist.toggle("my-class", true);

var toggleForced_false = tlist.toggle("my-class", false);
var toggleForced = tlist.toggle("my-class", false);

var toString = tlist.toString();

Expand All @@ -48,8 +46,7 @@ exports.item = item$1;
exports.contains = contains;
exports.supports = supports;
exports.toggle = toggle;
exports.toggleForced_true = toggleForced_true;
exports.toggleForced_false = toggleForced_false;
exports.toggleForced = toggleForced;
exports.toString = toString;
exports.value = value;
exports.setValue = setValue;
Expand Down
5 changes: 2 additions & 3 deletions tests/Webapi/Dom/Webapi__Dom__DomTokenList__test.res
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ tlist->removeMany(["my-class", "my-other-class"])
tlist->replace("my-class", "my-other-class")
let supports: bool = tlist->supports("my-class")
let toggle: bool = tlist->toggle("my-class")
let toggleForced_true: bool = tlist->toggleForced("my-class", true)
let toggleForced_false: bool = tlist->toggleForced("my-class", false)
let toggleForced: bool = tlist->toggleForced("my-class", false)
let toString: string = tlist->toString
let value: string = tlist->value
let setValue: unit = tlist->setValue("foo")
let setValue: unit = tlist->setValue("foo")

0 comments on commit bc2065b

Please sign in to comment.