Permalink
Browse files

Updated syntax

  • Loading branch information...
1 parent 846505f commit 7dbc1ed91d3fefa580d5fc76fedb3723fa825f9d @alex-seville committed Mar 23, 2013
Showing with 7 additions and 2 deletions.
  1. +7 −2 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.

0 comments on commit 7dbc1ed

Please sign in to comment.