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