Browse Source

Shut eslint up and fix test

JC Brand 8 years ago
parent
commit
a2cea678fe
2 changed files with 6 additions and 3 deletions
  1. 4 1
      .eslintrc.json
  2. 2 2
      spec/chatroom.js

+ 4 - 1
.eslintrc.json

@@ -13,7 +13,10 @@
     },
     },
     "rules": {
     "rules": {
         "lodash/prefer-lodash-method": [2, {
         "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-startswith": "off",
         "lodash/prefer-constant": "off",
         "lodash/prefer-constant": "off",

+ 2 - 2
spec/chatroom.js

@@ -1414,8 +1414,8 @@
                 var $chat_body = view.$('.chatroom-body');
                 var $chat_body = view.$('.chatroom-body');
                 expect($chat_body.html().trim().indexOf(
                 expect($chat_body.html().trim().indexOf(
                     '<p>You have been kicked from this room</p>'+
                     '<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);
                 )).not.toBe(-1);
             }));
             }));