lint common

This commit is contained in:
Matteo Pagliazzi
2019-10-09 20:08:36 +02:00
parent 0c27fb24a5
commit e0e9811ab6
330 changed files with 6885 additions and 7668 deletions

View File

@@ -32,13 +32,15 @@ describe('Challenge Detail', () => {
actions: {
'members:getChallengeMembers': () => {},
'challenges:getChallenge': () => [
{_id: '1', group: { name: '', type: ''}, memberCount: 1, name: '', summary: '', description: '', leader: '', price: 1},
{
_id: '1', group: { name: '', type: '' }, memberCount: 1, name: '', summary: '', description: '', leader: '', price: 1,
},
],
'tasks:getChallengeTasks': () => [
{_id: '1', type: 'habit'},
{_id: '2', type: 'daily'},
{_id: '3', type: 'reward'},
{_id: '4', type: 'todo'},
{ _id: '1', type: 'habit' },
{ _id: '2', type: 'daily' },
{ _id: '3', type: 'reward' },
{ _id: '4', type: 'todo' },
],
},
getters: {
@@ -48,13 +50,13 @@ describe('Challenge Detail', () => {
store,
localVue,
mocks: {
$t: (string) => string,
$t: string => string,
},
});
});
it('removes a destroyed task from task list', () => {
let taskToRemove = {_id: '1', type: 'habit'};
const taskToRemove = { _id: '1', type: 'habit' };
wrapper.vm.taskDestroyed(taskToRemove);
expect(wrapper.vm.tasksByType[taskToRemove.type].length).to.eq(0);
});