Make karma tests pass.

This pends a lot of tests that are failing due to translations not being loaded in the environment, as well as some issues with the page reload in groupServicesSpec.

We removed the module declarations for habitrpg in each spec since that
has been moved to specHelper.
This commit is contained in:
Sean Zellmer
2015-03-07 15:48:23 -06:00
parent 64493375ad
commit 4bc4e836e4
9 changed files with 24 additions and 21 deletions

View File

@@ -4,9 +4,6 @@
describe('notificationServices', function() {
var notification;
beforeEach(module('notificationServices'));
beforeEach(module('habitrpg'));
beforeEach(function() {
module(function($provide){
$provide.value('User', {});
@@ -18,11 +15,11 @@ describe('notificationServices', function() {
});
it('notifies coins amount', function() {
var SILVER_COIN = "<i class='icon-silver'></i>";
var GOLD_COIN = "<i class='icon-gold'></i>";
var SILVER_COIN = "<span class='notification-icon shop_silver'></span>";
var GOLD_COIN = "<span class='notification-icon shop_gold'></span>";
expect(notification.coins(0.01)).to.eql("1 " + SILVER_COIN);
expect(notification.coins(0.1)).to.eql("10 " + SILVER_COIN);
expect(notification.coins(1)).to.eql("1 " + GOLD_COIN);
expect(notification.coins(12.34)).to.eql("12 " + GOLD_COIN +" 33 " + SILVER_COIN);
});
});
});