tests: Add ability to use ES2015 in karma tests

This commit is contained in:
Blade Barringer
2015-12-28 08:24:23 -06:00
parent 56a00efb19
commit d53ac4c66f
4 changed files with 7 additions and 5 deletions

View File

@@ -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}));
});
});