fix(tests): temporary fix to some i18n issues in habitrpg-shared algo tests

This commit is contained in:
Tyler Renelle 2014-05-11 15:56:40 -06:00
parent c72c8a948f
commit 072b0ab005
3 changed files with 5 additions and 1 deletions

View file

@ -16,7 +16,8 @@
"grunt": "~0.4.1",
"grunt-contrib-cssmin": "~0.8.0",
"grunt-browserify": "~1.3.1",
"grunt-contrib-clean": "~0.5.0"
"grunt-contrib-clean": "~0.5.0",
"habitrpg": "git://github.com/HabitRPG/habitrpg.git#develop"
},
"scripts": {
"test": "mocha"

View file

@ -13,6 +13,8 @@ module.exports =
vars = arguments[1]
locale = arguments[2]
locale ?= 'en'
string = if (locale and !module.exports.strings) then module.exports.translations[locale][stringName] else module.exports.strings[stringName]
if string

View file

@ -6,6 +6,7 @@ expect = require 'expect.js'
sinon = require 'sinon'
moment = require 'moment'
shared = require '../script/index.coffee'
shared.i18n.translations = require('habitrpg/src/i18n.js').translations
test_helper = require './test_helper'
test_helper.addCustomMatchers()
$w = (s)->s.split(' ')