mirror of
https://github.com/wassname/CanvasTextWrapper.git
synced 2026-07-02 21:52:41 +08:00
v0.1.0
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
# 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']
|
||||
}
|
||||
});
|
||||
```
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
Task targets, files and options may be specified according to the grunt [Configuring tasks](http://gruntjs.com/configuring-tasks) guide.
|
||||
|
||||
This plugin provides server-side JavaScript unit testing via [nodeunit](https://github.com/caolan/nodeunit/). If you're looking to test JavaScript that uses `window` or the DOM, please use the [grunt-contrib-qunit plugin](https://github.com/gruntjs/grunt-contrib-qunit)`qunit` task.
|
||||
Reference in New Issue
Block a user