mirror of
https://github.com/wassname/CanvasTextWrapper.git
synced 2026-06-28 04:03:53 +08:00
25 lines
514 B
Markdown
25 lines
514 B
Markdown
# Usage examples
|
|
|
|
## Wildcards
|
|
|
|
In this example, `grunt nodeunit:all` or `grunt nodeunit` will test all files ending with `_test.js` in the `test` directory.
|
|
|
|
```js
|
|
// Project configuration.
|
|
grunt.initConfig({
|
|
nodeunit: {
|
|
all: ['test/*_test.js']
|
|
}
|
|
});
|
|
```
|
|
|
|
With a slight modification, `grunt nodeunit:all` will test files matching the same pattern in the `test` directory _and all subdirectories_.
|
|
|
|
```js
|
|
// Project configuration.
|
|
grunt.initConfig({
|
|
nodeunit: {
|
|
all: ['test/**/*_test.js']
|
|
}
|
|
});
|
|
``` |