mock-handlebars-loader
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "mock-handlebars-loader", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Mock handlebars loader for testing", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,2 +5,19 @@ # mock-handlebars-loader | ||
## Installation | ||
`npm i -D mock-handlebars-loader` | ||
`npm i -D mock-handlebars-loader` or `npm install --save-dev mock-handlebars-loader` | ||
## How to use | ||
If you use extension `.handlebars`, then simply add | ||
`require('mock-handlebars-loader')` | ||
to your test setup script, as the `.handlebars` extensions is being registered by default | ||
However, if you are using other types of extensions, you can register them as follows: | ||
``` | ||
const mockHandlebarsLoader = require('mock-handlebars-loader') | ||
mockHandlebarsLoader.register(['.hbs', '.html']) | ||
``` | ||
#### Example usage with mocha | ||
`mocha --require mock-handlebars-loader test/**/*.spec.js` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2824
23