Fix eslint testing

Partially reverting c8705a0
This commit is contained in:
Maxime Quandalle 2016-07-21 12:52:32 +02:00
parent dd95f0b002
commit 301210c87b
No known key found for this signature in database
GPG key ID: 428641C03D29CA10
2 changed files with 4 additions and 4 deletions

View file

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

View file

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