fix: revert back the patching of console.log

pull/7492/head
qinmu 4 years ago
parent 8b6ffcea35
commit e285f446d6

@ -7,11 +7,13 @@ export default {
const button = target.querySelector('button');
const event = new window.MouseEvent('click');
const messages = [];
const log = console.log;
console.log = msg => messages.push(msg);
await button.dispatchEvent(event);
assert.htmlEqual(target.innerHTML, `
<button>destroy component</button>
`);
assert.deepEqual(messages, ['destroy']);
console.log = log;
}
};

Loading…
Cancel
Save