fix old system dialog is not destroyed after closed

This commit is contained in:
Xuan Sang LE
2020-05-29 23:34:35 +02:00
parent 1c32f2010c
commit ced3777d30
5 changed files with 17 additions and 6 deletions

View File

@ -95,6 +95,13 @@ test("Test button tag behavior", () =>{
bt.onbtclick = cb
$("button",bt).trigger("click");
expect(cb).toBeCalledTimes(1);
const data = {
text: "name",
onbtclick: jest.fn()
};
bt.set(data);
$("button",bt).trigger("click");
expect(data.onbtclick).toBeCalledTimes(1);
});
// Label test