Skip to content

Commit da2cee4

Browse files
committed
style: run format
1 parent 559e010 commit da2cee4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/syntax-highlight-element.test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import { expect, test } from 'vitest';
22
import './index.js';
33

4-
const render = html => document.body.innerHTML = html;
4+
const render = (html) => {
5+
document.body.innerHTML = html;
6+
};
57

68
test('default attributes', async () => {
79
render('<syntax-highlight>plain text</syntax-highlight>');
10+
811
const element = document.querySelector('syntax-highlight');
912
await expect.element(element).toBeInTheDocument();
1013
expect(element).toHaveAttribute('tabindex', '0');
1114
});
12-

0 commit comments

Comments
 (0)