Shut eslint up and fix test

This commit is contained in:
JC Brand 2017-03-15 12:41:04 +00:00
parent 11d3715aca
commit a2cea678fe
2 changed files with 6 additions and 3 deletions

View File

@ -13,7 +13,10 @@
},
"rules": {
"lodash/prefer-lodash-method": [2, {
"ignoreMethods": ["find", "endsWith", "startsWith", "filter", "map"]
"ignoreMethods": [
"find", "endsWith", "startsWith", "filter",
"map", "replace", "toLower", "split", "trim"
]
}],
"lodash/prefer-startswith": "off",
"lodash/prefer-constant": "off",

View File

@ -1414,8 +1414,8 @@
var $chat_body = view.$('.chatroom-body');
expect($chat_body.html().trim().indexOf(
'<p>You have been kicked from this room</p>'+
'<p>This action was done by <strong>Fluellen</strong>.</p>'+
'<p>The reason given is: <em>"Avaunt, you cullion!"</em>.</p>'
'<p>This action was done by Fluellen.</p>'+
'<p>The reason given is: "Avaunt, you cullion!".</p>'
)).not.toBe(-1);
}));