Don't $watch drops (#7547)
* WIP(drops): get drops out of _tmp * fix(notifications): no watch for drops/mystery * fix(ops): only two response values * fix(test): update op expectation Also update API docs for modified route. * fix(lint): remove trailing space * fix(test): update integration check
This commit is contained in:
@@ -2,10 +2,13 @@ import {
|
||||
generateUser,
|
||||
translate as t,
|
||||
} from '../../../../helpers/api-integration/v3';
|
||||
import content from '../../../../../common/script/content/index';
|
||||
|
||||
describe('POST /user/open-mystery-item', () => {
|
||||
let user;
|
||||
let mysteryItemKey = 'eyewear_special_summerRogue';
|
||||
let mysteryItemIndex = content.gear.flat[mysteryItemKey].index;
|
||||
let mysteryItemType = content.gear.flat[mysteryItemKey].type;
|
||||
|
||||
beforeEach(async () => {
|
||||
user = await generateUser({
|
||||
@@ -21,6 +24,8 @@ describe('POST /user/open-mystery-item', () => {
|
||||
|
||||
expect(user.items.gear.owned[mysteryItemKey]).to.be.true;
|
||||
expect(response.message).to.equal(t('mysteryItemOpened'));
|
||||
expect(response.data).to.deep.equal(user.items.gear.owned);
|
||||
expect(response.data.key).to.eql(mysteryItemKey);
|
||||
expect(response.data.index).to.eql(mysteryItemIndex);
|
||||
expect(response.data.type).to.eql(mysteryItemType);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user