@@ -12,7 +12,7 @@ describe('Toast - 2', () => {
clear();
const tw = document.querySelector(`.${BASE_CLASS_PREFIX}-toast-wrapper`);
if (tw) {
- tw.innerHTML = '';
+ tw.childNodes[0].innerHTML = '';
}
});
@@ -9,9 +9,8 @@ describe('Toast', () => {
// semi-animation会使用Date.now(),所以这里需要clear掉全局的advanceTo对Date的修改
-
afterEach(async () => {