We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2f1dc2 commit e35a673Copy full SHA for e35a673
__tests__/src/util/getElementType-test.js
@@ -18,6 +18,7 @@ describe('getElementType', () => {
18
it('should return the exact tag name for names that are in Object.prototype', () => {
19
expect(elementType(JSXElementMock('toString').openingElement)).toBe('toString');
20
});
21
+
22
it('should return the default tag name provided', () => {
23
expect(elementType(JSXElementMock('span', [JSXAttributeMock('as', 'h1')]).openingElement)).toBe('span');
24
0 commit comments