diff --git a/test/browser/refs.test.js b/test/browser/refs.test.js
index a69b846239..7e4224af57 100644
--- a/test/browser/refs.test.js
+++ b/test/browser/refs.test.js
@@ -509,25 +509,23 @@ describe('refs', () => {
expect(ref.current).to.equal(scratch.firstChild.firstChild);
});
- // TODO
- it.skip('should properly call null for memoized components keyed', () => {
- const calls = [];
+ it('should properly call null for memoized components keyed', () => {
+ let calls = [];
const element =
calls.push(x)}>hey
;
function App(props) {
return {element}
;
}
render(, scratch);
+ expect(calls).to.deep.equal([scratch.firstChild.firstChild]);
+ calls = [];
+
render(, scratch);
+ expect(calls).to.deep.equal([null, scratch.firstChild.firstChild]);
+ calls = [];
+
render(, scratch);
- expect(calls.length).to.equal(5);
- expect(calls).to.deep.equal([
- scratch.firstChild.firstChild,
- null,
- scratch.firstChild.firstChild,
- null,
- scratch.firstChild.firstChild
- ]);
+ expect(calls).to.deep.equal([null, scratch.firstChild.firstChild]);
});
it('should properly call null for memoized components unkeyed', () => {