Skip to content

Commit 557ae7e

Browse files
chore(benchmark): fix index.js
1 parent 72cc826 commit 557ae7e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

benchmark/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
const Benchmark = require('benchmark');
2-
const { data } = require('../test/helpers/');
3-
const Parser = require('..');
2+
const { html } = require('../test/data');
3+
const parse = require('..');
44

55
const suite = new Benchmark.Suite();
66

77
suite
88
.add('html-to-react - Single', () => {
9-
Parser(data.html.single);
9+
parse(html.single);
1010
})
1111
.add('html-to-react - Multiple', () => {
12-
Parser(data.html.multiple);
12+
parse(html.multiple);
1313
})
1414
.add('html-to-react - Complex', () => {
15-
Parser(data.html.complex);
15+
parse(html.complex);
1616
})
1717
.on('cycle', (event) => {
1818
process.stdout.write(String(event.target) + '\n');

0 commit comments

Comments
 (0)