espower-loader
Advanced tools
Changelog
0.8.0 (2014-08-12)
If you already customize instrumentation pattern using powerAssertVariableName
and targetMethods
, you need to migarte. To migrate, change your code from the following:
require('espower-loader')({
cwd: process.cwd(),
pattern: 'test/**/*.js',
espowerOptions: {
powerAssertVariableName: 'yourAssert',
targetMethods: {
oneArg: [
'okay'
],
twoArgs: [
'equal',
'customEqual'
]
}
}
});
To:
require('espower-loader')({
cwd: process.cwd(),
pattern: 'test/**/*.js',
espowerOptions: {
patterns: [
'yourAssert(value, [message])',
'yourAssert.okay(value, [message])',
'yourAssert.equal(actual, expected, [message])',
'yourAssert.customEqual(actual, expected, [message])'
]
}
});