Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated syntax

  • Loading branch information...
commit 7dbc1ed91d3fefa580d5fc76fedb3723fa825f9d 1 parent 846505f
@alex-seville authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 docs/intermediate_node.md
View
9 docs/intermediate_node.md
@@ -12,12 +12,17 @@ To begin you will need:
2. Add the following to top of your test runner file:
- `var blanket = require("blanket"); blanket.options("filter", "/source/");`
+ ```
+ var blanket = require("blanket")({
+ /* options are passed as an argument object to the require statement */
+ "pattern": "/source/"
+ });
+ ```
... where `/source/` matches partially or fully the directory where the source files to be instrumented are stored.
You can also provide an array of regular expression.
-3. Omitting the second line will default to "src". Additionally, any value provided there will override values set in the package.json file.
+3. Omitting the object argument will default to "src". Additionally, any value provided there will override values set in the package.json file.
4. Since we've explicit referenced blanket we don't need to require it in the mocha command.
Please sign in to comment.
Something went wrong with that request. Please try again.