diff --git a/test/two-pass.js b/test/two-pass.js index aff806a..f702a4e 100644 --- a/test/two-pass.js +++ b/test/two-pass.js @@ -1,7 +1,5 @@ describe("Two-pass option for retaining more state", function () { - beforeEach(function () { - clearWorkArea(); - }); + setup(); it("fails to preserve all non-attribute element state with single-pass option", function () { getWorkArea().append( @@ -428,4 +426,45 @@ describe("Two-pass option for retaining more state", function () { ], ]); }); + + it("beforeNodeMorphed hook also applies to nodes restored from the pantry", function () { + getWorkArea().append( + make(` +
First paragraph
+Second paragraph
+Second paragraph
+First paragraph
+Second paragraph EDITED
+First paragraph EDITED
+