Skip to content

Commit

Permalink
Fix more typos (#1526)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov authored and leebyron committed Sep 18, 2018
1 parent b731468 commit 3789a87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions resources/benchmark.js
Expand Up @@ -71,8 +71,8 @@ function findFiles(cwd, pattern) {
}

// Run a given benchmark test with the provided revisions.
function runBenchmark(benchmark, enviroments) {
const modules = enviroments.map(({distPath}) =>
function runBenchmark(benchmark, environments) {
const modules = environments.map(({distPath}) =>
require(path.join(distPath, benchmark)),
);
const suite = new Suite(modules[0].name, {
Expand All @@ -90,8 +90,8 @@ function runBenchmark(benchmark, enviroments) {
beautifyBenchmark.log();
},
});
for (let i = 0; i < enviroments.length; i++) {
suite.add(enviroments[i].revision, modules[i].measure);
for (let i = 0; i < environments.length; i++) {
suite.add(environments[i].revision, modules[i].measure);
}
suite.run({ async: false });
}
Expand All @@ -116,10 +116,10 @@ function prepareAndRunBenchmarks(benchmarkPatterns, revisions) {
return;
}

const enviroments = revisions.map(
const environments = revisions.map(
revision => ({ revision, distPath: prepareRevision(revision)})
);
benchmarks.forEach(benchmark => runBenchmark(benchmark, enviroments));
benchmarks.forEach(benchmark => runBenchmark(benchmark, environments));
}

function getArguments(argv) {
Expand Down
2 changes: 1 addition & 1 deletion src/error/README.md
@@ -1,7 +1,7 @@
GraphQL Errors
--------------

The `graphql/error` module is responsible for creating and formating
The `graphql/error` module is responsible for creating and formatting
GraphQL errors.

```js
Expand Down

0 comments on commit 3789a87

Please sign in to comment.