pull/5621/head
pushkin 5 years ago committed by GitHub
parent bfba232dac
commit c7e7ea6ad1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,15 +1,15 @@
export default {
props: { text: "first" },
props: { text: 'first' },
test({ assert, target, component }) {
assert.htmlEqual(target.innerHTML, "<button>first</button>");
component.text = "second";
assert.htmlEqual(target.innerHTML, "<button>second</button>");
assert.htmlEqual(target.innerHTML, '<button>first</button>');
component.text = 'second';
assert.htmlEqual(target.innerHTML, '<button>second</button>');
let last_text;
component.text = "third";
component.text = 'third';
component.on_destroy = (text) => {
last_text = text;
};
component.$destroy();
assert.equal(last_text, "third");
},
assert.equal(last_text, 'third');
}
};

Loading…
Cancel
Save