Skip to content

Commit

Permalink
feat(espower-loader): update espower-source to 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
twada committed Aug 12, 2014
1 parent d5309e9 commit 54c2143
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 45 deletions.
24 changes: 10 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,16 @@ require('espower-loader')({

// options for espower module
espowerOptions: {
powerAssertVariableName: 'assert',
targetMethods: {
oneArg: [
'ok'
],
twoArgs: [
'equal',
'notEqual',
'strictEqual',
'notStrictEqual',
'deepEqual',
'notDeepEqual'
]
}
patterns: [
'assert(value, [message])',
'assert.ok(value, [message])',
'assert.equal(actual, expected, [message])',
'assert.notEqual(actual, expected, [message])',
'assert.strictEqual(actual, expected, [message])',
'assert.notStrictEqual(actual, expected, [message])',
'assert.deepEqual(actual, expected, [message])',
'assert.notDeepEqual(actual, expected, [message])'
]
}
});
```
Expand Down
24 changes: 10 additions & 14 deletions examples/enable-power-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,15 @@ require('espower-loader')({

// options for espower module
espowerOptions: {
powerAssertVariableName: 'assert',
targetMethods: {
oneArg: [
'ok'
],
twoArgs: [
'equal',
'notEqual',
'strictEqual',
'notStrictEqual',
'deepEqual',
'notDeepEqual'
]
}
patterns: [
'assert(value, [message])',
'assert.ok(value, [message])',
'assert.equal(actual, expected, [message])',
'assert.notEqual(actual, expected, [message])',
'assert.strictEqual(actual, expected, [message])',
'assert.notStrictEqual(actual, expected, [message])',
'assert.deepEqual(actual, expected, [message])',
'assert.notDeepEqual(actual, expected, [message])'
]
}
});
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@
"node": ">= 0.8.0"
},
"dependencies": {
"espower-source": "~0.7.3",
"espower-source": "~0.8.0",
"minimatch": "~1.0.0"
},
"devDependencies": {
"empower": "~0.7.3",
"power-assert-formatter": "~0.7.1",
"empower": "~0.8.0",
"power-assert-formatter": "~0.8.0",
"mocha": "~1.21.4",
"grunt-contrib-jshint": "~0.10.0",
"grunt-mocha-test": "~0.10.2",
Expand Down
24 changes: 10 additions & 14 deletions test_loader/enable-power-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,15 @@ require('..')({

// options for espower module
espowerOptions: {
powerAssertVariableName: 'assert',
targetMethods: {
oneArg: [
'ok'
],
twoArgs: [
'equal',
'notEqual',
'strictEqual',
'notStrictEqual',
'deepEqual',
'notDeepEqual'
]
}
patterns: [
'assert(value, [message])',
'assert.ok(value, [message])',
'assert.equal(actual, expected, [message])',
'assert.notEqual(actual, expected, [message])',
'assert.strictEqual(actual, expected, [message])',
'assert.notStrictEqual(actual, expected, [message])',
'assert.deepEqual(actual, expected, [message])',
'assert.notDeepEqual(actual, expected, [message])'
]
}
});

0 comments on commit 54c2143

Please # to comment.