v3 common: fix tags tests

This commit is contained in:
Matteo Pagliazzi
2016-05-15 12:45:27 +02:00
parent cb0939a38c
commit 438d2779b5
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ import appliedTags from '../../../common/script/libs/appliedTags';
describe('appliedTags', () => {
it('returns the tasks', () => {
let userTags = [{ id: 'tag1', name: 'tag 1' }, { id: 'tag2', name: 'tag 2' }, { id: 'tag3', name: 'tag 3' }];
let taskTags = { tag2: true, tag3: true };
let taskTags = ['tag2', 'tag3'];
let result = appliedTags(userTags, taskTags);
expect(result).to.eql('tag 2, tag 3');
});

View File

@@ -7,7 +7,7 @@ describe('taskClasses', () => {
describe('a todo task', () => {
beforeEach(() => {
task = { type: 'todo', _editing: false, tags: { a: false } };
task = { type: 'todo', _editing: false, tags: [] };
});
it('is hidden', () => {