mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
tests: Add ability to use ES2015 in karma tests
This commit is contained in:
@@ -68,13 +68,13 @@ describe('Invite to Group Controller', function() {
|
||||
it('uses provided name', function() {
|
||||
scope.group.name = 'test party';
|
||||
scope.inviteNewUsers('uuid');
|
||||
expect(group.name).to.eql('test party');
|
||||
expect(scope.group.name).to.eql('test party');
|
||||
});
|
||||
|
||||
it('names the group if no name is provided', function() {
|
||||
scope.group.name = '';
|
||||
scope.inviteNewUsers('uuid');
|
||||
expect(group.name).to.eql(env.t('possessiveParty', {name: user.profile.name}));
|
||||
expect(scope.group.name).to.eql(env.t('possessiveParty', {name: user.profile.name}));
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user