mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-07-12 20:54:29 +02:00
fix old system dialog is not destroyed after closed
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user