add tests for fns/ultimateGear, fns/handleTwoHanded, fns/randomVal, fns/predictableRandom and partial tests for ops/buy

This commit is contained in:
Matteo Pagliazzi
2016-03-19 18:05:02 +01:00
parent ff72706cae
commit 957e1d26d6
12 changed files with 341 additions and 137 deletions

View File

@@ -23,7 +23,7 @@ module.exports = function buyMysterySet (user, req = {}, analytics) {
throw new NotFound(i18n.t('mysterySetNotFound', req.language));
}
if (window && window.confirm) { // TODO move to client
if (typeof window !== 'undefined' && window.confirm) { // TODO move to client
if (!window.confirm(i18n.t('hourglassBuyEquipSetConfirm'))) return;
}