mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-04 01:29:21 +00:00
Fix tag creation test
This commit is contained in:
parent
f7f9bb1131
commit
74495bb690
1 changed files with 3 additions and 1 deletions
|
|
@ -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(){
|
||||
|
|
|
|||
Loading…
Reference in a new issue