Skip to content

Commit 774c38e

Browse files
test(attributes-to-props): add test when first argument is undefined
1 parent d42bf5f commit 774c38e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/attributes-to-props.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
const attributesToProps = require('../lib/attributes-to-props');
22
const utilities = require('../lib/utilities');
33

4+
it('returns empty object is argument is undefined', () => {
5+
expect(attributesToProps()).toEqual({});
6+
});
7+
48
describe('attributesToProps with HTML attribute', () => {
59
it('converts attributes to React props', () => {
610
const attributes = {

0 commit comments

Comments
 (0)