Changelog
1.0.0 (2015-05-25)
deepStrictEqual
and notDeepStrictEqual
(9d98bc17)sourceRoot
option. If set, filepath in power-assert output will be relative from sourceRoot
visitorKeys
option to customize AST traversalChangelog
0.8.0 (2014-08-12)
browser.assert.element(selector)
(ea0a3ce9)powerAssertVariableName
is now deprecated and ignored. Please use patterns
option instead (2f023f91)targetMethods
is now deprecated and ignored. Please use patterns
option instead (e75e5d35)If you already customize instrumentation pattern using powerAssertVariableName
and targetMethods
, you need to migarte. To migrate, change your code from the following:
var options = {
powerAssertVariableName: 'yourAssert',
targetMethods: {
oneArg: [
'okay'
],
twoArgs: [
'equal',
'customEqual'
]
}
};
var modifiedAst = espower(jsAst, options);
To:
var options = {
patterns: [
'yourAssert(value, [message])',
'yourAssert.okay(value, [message])',
'yourAssert.equal(actual, expected, [message])',
'yourAssert.customEqual(actual, expected, [message])'
]
};
var modifiedAst = espower(jsAst, options);