Skip to content

Commit

Permalink
is this correct, or a bug?
Browse files Browse the repository at this point in the history
  • Loading branch information
botandrose-machine committed Dec 17, 2024
1 parent da7ade6 commit 350bda2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe("lifecycle hooks", function(){
initial.outerHTML.should.equal(`<ul name="b"><li name="b" id="a">A</li></ul>`);
});

it.skip('calls afterNodeMorphed before a node is morphed', function(){
it('calls afterNodeMorphed before a node is morphed', function(){
let calls = [];
let initial = make(`<ul><li id="a">A</li></ul>`);
Idiomorph.morph(initial, `<ul><li id="a">B</li></ul>`, { callbacks: {
Expand All @@ -77,9 +77,9 @@ describe("lifecycle hooks", function(){
} });
initial.outerHTML.should.equal(`<ul><li id="a">B</li></ul>`);
calls.should.eql([
[`A`, `B`],
[`<li id="a">A</li>`, `<li id="a">B</li>`],
[`<ul><li id="a">A</li></ul>`, `<ul><li id="a">B</li></ul>`],
[`B`, `B`],
[`<li id="a">B</li>`, `<li id="a">B</li>`],
[`<ul><li id="a">B</li></ul>`, `<ul><li id="a">B</li></ul>`],
]);
});

Expand Down

0 comments on commit 350bda2

Please sign in to comment.