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

@@ -3,7 +3,6 @@
describe('Filters Controller', function() {
var scope, user;
beforeEach(module('habitrpg'));
beforeEach(inject(function($rootScope, $controller, Shared) {
user = specHelper.newUser();
Shared.wrap(user);