mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Fix tag creation test
This commit is contained in:
@@ -13,7 +13,9 @@ describe('Filters Controller', function() {
|
||||
|
||||
it('creates a tag', function(){
|
||||
scope.createTag('tagName');
|
||||
expect(user.tags).to.eql([{name: 'tagName'}]);
|
||||
expect(user.tags).to.have.length(1);
|
||||
expect(user.tags[0].name).to.eql('tagName');
|
||||
expect(user.tags[0]).to.have.property('id');
|
||||
});
|
||||
|
||||
it('toggles tag filtering', function(){
|
||||
|
||||
Reference in New Issue
Block a user