Ported reroll. Added unit tests. Added reroll route. Added integration tests

This commit is contained in:
Keith Holliday
2016-04-08 15:56:11 -05:00
parent 116839ca81
commit 1685b7285f
10 changed files with 184 additions and 28 deletions

View File

@@ -4,6 +4,7 @@ import {
NotAuthorized,
} from '../libs/errors';
import splitWhitespace from '../libs/splitWhitespace';
import _ from 'lodash';
module.exports = function releasePets (user, req = {}, analytics) {
if (user.balance < 1) {
@@ -27,7 +28,7 @@ module.exports = function releasePets (user, req = {}, analytics) {
uuid: user._id,
acquireMethod: 'Gems',
gemCost: 4,
category: 'behavior'
category: 'behavior',
});
}