Skip to content

Commit

Permalink
squash
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed Jan 12, 2017
1 parent 9b2a9b0 commit 00fa7e2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doc/guides/writing-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ The second line loads the `common` module. The `common` module is a helper
module that provides useful tools for the tests.

Even if a test uses no functions or other properties exported by `common`,
the test should still include the `common` module. This is because the `common`
module includes code that will cause tests to fail if there are variables leaked
into the global space. In situations where a test uses no functions or other
properties exported by `common`, include it without assigning it to an
identifier:
the test should still include the `common` module before any other modules. This
is because the `common` module includes code that will cause a test to fail if
the test leaks variables into the global space. In situations where a test uses
no functions or other properties exported by `common`, include it without
assigning it to an identifier:

```javascript
require('../common');
Expand Down Expand Up @@ -128,7 +128,7 @@ depending on the platform. For example:
const timer = setTimeout(fail, common.platformTimeout(4000));
```

will create a 4-seconds timeout on most platforms but a longer timeout on slower
will create a 4-second timeout on most platforms but a longer timeout on slower
platforms.

### The *common* API
Expand Down

0 comments on commit 00fa7e2

Please sign in to comment.