Skip to content

Commit

Permalink
test(tags): fix onClick => onclick
Browse files Browse the repository at this point in the history
  • Loading branch information
sebkolind committed May 27, 2024
1 parent d9919af commit bfd789e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/tags.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ describe('tags.ts', () => {
const el = createTag([
'button',
'test',
{ id: 'foo', 'data-bar': 'baz', onClick: fn },
{ id: 'foo', 'data-bar': 'baz', onclick: fn },
]);

expect(el.$tent.attributes['id']).toBe('foo');
expect(el.$tent.attributes['data-bar']).toBe('baz');
expect(el.$tent.attributes['onClick']).toBe(fn);
expect(el.$tent.attributes['onclick']).toBe(fn);
});
});

0 comments on commit bfd789e

Please sign in to comment.