mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Squashed commit of the following:
commit 3746ccb2fdfb23276f49a9aee25e00ca366be14c Author: Phillip Thelen <phillip@habitica.com> Date: Thu Jan 23 17:30:31 2025 +0100 fix giving gear to contributors commit 557cb582df47abb75331794e2af5c69da5548a90 Author: Phillip Thelen <phillip@habitica.com> Date: Tue Jan 21 11:10:29 2025 +0100 Give contributors gear immediately commit 8d25bef6e1c6e48aa4d5a3b0cde49844d3164ed9 Author: Phillip Thelen <phillip@habitica.com> Date: Tue Jan 21 11:10:16 2025 +0100 adjust contributor tests commit d918738533fe059db65d9020adb0126b43aaf0b3 Author: Phillip Thelen <phillip@habitica.com> Date: Tue Jan 21 11:02:19 2025 +0100 adjust gems per tier
This commit is contained in:
@@ -60,12 +60,12 @@ describe('PUT /heroes/:heroId', () => {
|
||||
expect(heroRes.profile).to.have.all.keys(['name']);
|
||||
|
||||
// test response values
|
||||
expect(heroRes.balance).to.equal(3 + 0.75); // 3+0.75 for first contrib level
|
||||
expect(heroRes.balance).to.equal(3 + 2.5); // 3+2.5 for first contrib level
|
||||
expect(heroRes.contributor.level).to.equal(1);
|
||||
expect(heroRes.purchased.ads).to.equal(true);
|
||||
// test hero values
|
||||
await hero.sync();
|
||||
expect(hero.balance).to.equal(3 + 0.75); // 3+0.75 for first contrib level
|
||||
expect(hero.balance).to.equal(3 + 2.5); // 3+2.5 for first contrib level
|
||||
expect(hero.contributor.level).to.equal(1);
|
||||
expect(hero.purchased.ads).to.equal(true);
|
||||
expect(hero.auth.blocked).to.equal(prevBlockState);
|
||||
@@ -136,12 +136,12 @@ describe('PUT /heroes/:heroId', () => {
|
||||
expect(heroRes.profile).to.have.all.keys(['name']);
|
||||
|
||||
// test response values
|
||||
expect(heroRes.balance).to.equal(1); // 0+1 for sixth contrib level
|
||||
expect(heroRes.balance).to.equal(15); // 0+15 for sixth contrib level
|
||||
expect(heroRes.contributor.level).to.equal(6);
|
||||
expect(heroRes.items.pets['Dragon-Hydra']).to.equal(5);
|
||||
// test hero values
|
||||
await hero.sync();
|
||||
expect(hero.balance).to.equal(1); // 0+1 for sixth contrib level
|
||||
expect(hero.balance).to.equal(15); // 0+15 for sixth contrib level
|
||||
expect(hero.contributor.level).to.equal(6);
|
||||
expect(hero.items.pets['Dragon-Hydra']).to.equal(5);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user