Add translations to Karma specs

* Added a task to Gruntfile to use website/src/i18n.js to generate a small JS file to be loaded in Karma env which sets window.env.translations to the i18n.translations['en'].

* Added new Grunt task to build:dev

* Updated Karma specs to reenable testing where possible, updating comments where not.
This commit is contained in:
Kevin Gisi
2015-03-22 09:06:37 -04:00
parent f41933b7a1
commit 09b6401794
8 changed files with 29 additions and 18 deletions

View File

@@ -66,13 +66,13 @@ describe('Inventory Controller', function() {
expect(user.stats.gp).to.eql(1);
});
xit('chooses a pet', function(){
it('chooses a pet', function(){
user.items.pets['Cactus-Base'] = 5;
scope.choosePet('Cactus', 'Base');
expect(user.items.currentPet).to.eql('Cactus-Base');
});
xit('purchases an egg', inject(function(Content){
it('purchases an egg', inject(function(Content){
scope.purchase('eggs', Content.eggs['Wolf']);
expect(user.balance).to.eql(3.25);
expect(user.items.eggs).to.eql({Cactus: 1, Wolf: 1})