mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
v3 common: fix tags tests
This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
||||
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user