Skip to content

Commit

Permalink
fix test to remove let t declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
mununki committed Feb 7, 2022
1 parent 74c8e73 commit cabe968
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
9 changes: 3 additions & 6 deletions lib/js/tests/Webapi/Dom/Webapi__Dom__EventTarget__test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,11 @@ target.dispatchEvent(customEvent);

var Detail = {};

var t = {
test: "test"
};

var EventWithDetail = Webapi__Dom__CustomEvent.Make(Detail);

var typedCustomEvent = new CustomEvent("event-with-detail", t);
var typedCustomEvent = new CustomEvent("event-with-detail", {
test: "test"
});

target.dispatchEvent(typedCustomEvent);

Expand All @@ -57,7 +55,6 @@ exports.$$event = $$event;
exports.handleClick = handleClick;
exports.customEvent = customEvent;
exports.Detail = Detail;
exports.t = t;
exports.EventWithDetail = EventWithDetail;
exports.typedCustomEvent = typedCustomEvent;
/* target Not a pure module */
6 changes: 1 addition & 5 deletions tests/Webapi/Dom/Webapi__Dom__EventTarget__test.res
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ module Detail = {
type t = {test: string}
}

let t: Detail.t = {
test: "test",
}

module EventWithDetail = CustomEvent.Make(Detail)
let typedCustomEvent = EventWithDetail.makeWithOptions("event-with-detail", t)
let typedCustomEvent = EventWithDetail.makeWithOptions("event-with-detail", {test: "test"})
let _ = target->dispatchEvent(typedCustomEvent)

0 comments on commit cabe968

Please sign in to comment.