[IMP] component: give snapshot from 'willPatch' to 'patched'

This commit is contained in:
Géry Debongnie
2019-04-25 14:46:04 +02:00
parent d509373228
commit 754272b436
3 changed files with 26 additions and 15 deletions
+3 -1
View File
@@ -545,8 +545,10 @@ describe("lifecycle hooks", () => {
state = { n: 1 };
willPatch() {
steps.push("parent:willPatch");
return 'leffe';
}
patched() {
patched(snapshot) {
expect(snapshot).toBe('leffe');
steps.push("parent:patched");
}
}