projects
/
xtuple
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8253b4
)
fix toLowerCase error
author
Travis Webb
<me@traviswebb.com>
Tue, 17 Jun 2014 15:00:30 +0000
(11:00 -0400)
committer
Travis Webb
<me@traviswebb.com>
Tue, 17 Jun 2014 15:00:30 +0000
(11:00 -0400)
test/lib/zombie_auth.js
patch
|
blob
|
history
diff --git
a/test/lib/zombie_auth.js
b/test/lib/zombie_auth.js
index
e613fd7
..
8be4008
100644
(file)
--- a/
test/lib/zombie_auth.js
+++ b/
test/lib/zombie_auth.js
@@
-148,7
+148,7
@@
var assert = require('assert'),
XZ.database = database;
XT.log = function (message, obj) {
- if (message && message.toLowerCase().indexOf("error") === 0) {
+ if (message &&
_.isFunction(message.toLowerCase) &&
message.toLowerCase().indexOf("error") === 0) {
// errors from the datasource should cause the test to fail
assert.fail(message + " " + JSON.stringify(obj));
}