Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit d3765bc

Browse files
willbuckjeffbcross
authored andcommitted
fix(spec): add reflect-metadata to package.json and spec
1 parent 337d5ec commit d3765bc

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"dependencies": {
1212
"benchpress": "^2.0.0-alpha.25",
1313
"http-server": "^0.7.5",
14-
"protractor": "^1.7.0"
14+
"protractor": "^1.7.0",
15+
"reflect-metadata": "^0.1.0"
1516
}
1617
}

tree_benchmark.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var reflect = require('reflect-metadata');
1+
require('reflect-metadata');
22
var benchpress = require('benchpress');
33
var runner = new benchpress.Runner([
44
//use protractor as Webdriver client
@@ -20,15 +20,15 @@ describe('deep tree baseline', function() {
2020
//Load the benchmark, with a tree depth of 9
2121
browser.get('http://localhost:8080/tree.html?depth='+depth);
2222
/*
23-
* Tell benchpress to click the buttons to destroy and re-create the tree for each sample.
23+
* Tell benchpress to click the buttons to destroy and re-create the tree for each sample.
2424
* Benchpress will log the collected metrics after each sample is collected, and will stop
2525
* sampling as soon as the calculated regression slope for last 20 samples is stable.
2626
*/
2727
runner.sample({
2828
id: 'deep-tree',
2929
execute: function() {
3030
/*
31-
* Will call querySelector in the browser, but benchpress is smart enough to ignore injected
31+
* Will call querySelector in the browser, but benchpress is smart enough to ignore injected
3232
* script.
3333
*/
3434
$('#destroyDom').click();

0 commit comments

Comments
 (0)