|
|
|
@ -203,7 +203,7 @@ describe('runtime', () => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (config.test) {
|
|
|
|
if (config.test) {
|
|
|
|
config.test({
|
|
|
|
return Promise.resolve(config.test({
|
|
|
|
assert,
|
|
|
|
assert,
|
|
|
|
component,
|
|
|
|
component,
|
|
|
|
mod,
|
|
|
|
mod,
|
|
|
|
@ -211,12 +211,13 @@ describe('runtime', () => {
|
|
|
|
window,
|
|
|
|
window,
|
|
|
|
raf,
|
|
|
|
raf,
|
|
|
|
compileOptions
|
|
|
|
compileOptions
|
|
|
|
});
|
|
|
|
})).then(() => {
|
|
|
|
component.$destroy();
|
|
|
|
component.$destroy();
|
|
|
|
|
|
|
|
|
|
|
|
if (unhandled_rejection) {
|
|
|
|
if (unhandled_rejection) {
|
|
|
|
throw unhandled_rejection;
|
|
|
|
throw unhandled_rejection;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
component.$destroy();
|
|
|
|
component.$destroy();
|
|
|
|
assert.htmlEqual(target.innerHTML, '');
|
|
|
|
assert.htmlEqual(target.innerHTML, '');
|
|
|
|
|