Browse Source

Fix eslint testing

Partially reverting c8705a0
Maxime Quandalle 9 years ago
parent
commit
301210c87b
2 changed files with 4 additions and 4 deletions
  1. 2 2
      client/components/main/editor.js
  2. 2 2
      package.json

+ 2 - 2
client/components/main/editor.js

@@ -10,7 +10,7 @@ Template.editor.onRendered(() => {
       search(term, callback) {
       search(term, callback) {
         callback(Emoji.values.map((emoji) => {
         callback(Emoji.values.map((emoji) => {
           return emoji.includes(term) ? emoji : null;
           return emoji.includes(term) ? emoji : null;
-        }).filter(emoji => !!emoji));
+        }).filter(Boolean));
       },
       },
       template(value) {
       template(value) {
         const imgSrc = Emoji.baseImagePath + value;
         const imgSrc = Emoji.baseImagePath + value;
@@ -31,7 +31,7 @@ Template.editor.onRendered(() => {
         callback(currentBoard.activeMembers().map((member) => {
         callback(currentBoard.activeMembers().map((member) => {
           const username = Users.findOne(member.userId).username;
           const username = Users.findOne(member.userId).username;
           return username.includes(term) ? username : null;
           return username.includes(term) ? username : null;
-        }).filter(username => !!username));
+        }).filter(Boolean));
       },
       },
       template(value) {
       template(value) {
         return value;
         return value;

+ 2 - 2
package.json

@@ -4,8 +4,8 @@
   "description": "The open-source Trello-like kanban",
   "description": "The open-source Trello-like kanban",
   "private": true,
   "private": true,
   "scripts": {
   "scripts": {
-    "lint": "eslint .; exit 0",
-    "test": "npm run --silent lint; exit 0"
+    "lint": "eslint .",
+    "test": "npm run --silent lint"
   },
   },
   "repository": {
   "repository": {
     "type": "git",
     "type": "git",