Skip to content

Commit 2076df7

Browse files
committed
rm another describe
1 parent 5148c4e commit 2076df7

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

packages/react-dom/src/client/__tests__/dangerouslySetInnerHTML-test.js

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -27,36 +27,4 @@ describe('dangerouslySetInnerHTML', () => {
2727
expect(container.firstChild.innerHTML).toBe('<h1>Hello</h1>');
2828
});
2929
});
30-
31-
describe('when the node does not have an innerHTML property', () => {
32-
let innerHTMLDescriptor;
33-
34-
// In some versions of IE (TODO: which ones?) SVG nodes don't have
35-
// innerHTML. To simulate this, we will take it off the Element prototype
36-
// and put it onto the HTMLDivElement prototype. We expect that the logic
37-
// checks for existence of innerHTML on SVG, and if one doesn't exist, falls
38-
// back to using appendChild and removeChild.
39-
40-
beforeEach(() => {
41-
innerHTMLDescriptor = Object.getOwnPropertyDescriptor(
42-
Element.prototype,
43-
'innerHTML',
44-
);
45-
delete Element.prototype.innerHTML;
46-
Object.defineProperty(
47-
HTMLDivElement.prototype,
48-
'innerHTML',
49-
innerHTMLDescriptor,
50-
);
51-
});
52-
53-
afterEach(() => {
54-
delete HTMLDivElement.prototype.innerHTML;
55-
Object.defineProperty(
56-
Element.prototype,
57-
'innerHTML',
58-
innerHTMLDescriptor,
59-
);
60-
});
61-
});
6230
});

0 commit comments

Comments
 (0)