mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-08 21:38:43 +00:00
fix(tests): temporary fix to some i18n issues in habitrpg-shared algo tests
This commit is contained in:
parent
c72c8a948f
commit
072b0ab005
3 changed files with 5 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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(' ')
|
||||
|
|
|
|||
Loading…
Reference in a new issue