v3 fix tests and use coroutines instead of regenerator

This commit is contained in:
Matteo Pagliazzi
2016-05-11 15:59:18 +02:00
parent 84b198f17f
commit 95aff08de3
24 changed files with 80 additions and 2702 deletions

View File

@@ -1,3 +1,5 @@
/* eslint-disable camelcase */
import {
generateUser,
translate as t,
@@ -46,6 +48,15 @@ describe('POST /user/buy/:key', () => {
await user.post(`/user/buy/${key}`);
await user.sync();
expect(user.items.gear.owned).to.eql({ armor_warrior_1: true }); // eslint-disable-line camelcase
expect(user.items.gear.owned).to.eql({
armor_warrior_1: true,
eyewear_special_blackTopFrame: true,
eyewear_special_blueTopFrame: true,
eyewear_special_greenTopFrame: true,
eyewear_special_pinkTopFrame: true,
eyewear_special_redTopFrame: true,
eyewear_special_whiteTopFrame: true,
eyewear_special_yellowTopFrame: true,
});
});
});