mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[IMP] component: give snapshot from 'willPatch' to 'patched'
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user