Skip to content

Commit

Permalink
fix: and more types
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Ferreiro Val committed Jun 19, 2019
1 parent 523e443 commit 1d70187
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@best/analyzer/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function collectResults(resultNode: BenchmarkResultNode, collector: AllBenchmark
collectorNode.aggregate.push(resultNode.aggregate);
}

if (resultNode.type ==="benchmark") {
if (resultNode.type === "benchmark") {
const { metrics } = resultNode;
Object.keys(metrics).reduce((collector: BenchmarkMetricsAggregate, key: string) => {
const bucket = collector[key as BenchmarkMetricNames];
Expand Down Expand Up @@ -69,7 +69,7 @@ export async function analyzeBenchmarks(benchmarkResults: BenchmarkResultsSnapsh
return Promise.all(
// For each benchmark file runned...
benchmarkResults.map(async (benchmarkResult: BenchmarkResultsSnapshot) => {
const { results, environment, benchmarkInfo: { benchmarkName }, projectConfig } = benchmarkResult;
const { results, benchmarkInfo: { benchmarkName }, projectConfig } = benchmarkResult;
const structure = results[0];

// Collect the metrics for the nested benchmarks within
Expand Down

0 comments on commit 1d70187

Please sign in to comment.