mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
fix: Correct hourglass test
This commit is contained in:
@@ -26,7 +26,7 @@ describe('user.ops.hourglassPurchase', () => {
|
|||||||
context('failure conditions', () => {
|
context('failure conditions', () => {
|
||||||
it('does not allow purchase of unsupported item types', (done) => {
|
it('does not allow purchase of unsupported item types', (done) => {
|
||||||
user.ops.hourglassPurchase({params: {type: 'hatchingPotions', key: 'Base'}}, (response) => {
|
user.ops.hourglassPurchase({params: {type: 'hatchingPotions', key: 'Base'}}, (response) => {
|
||||||
expect(response.message).to.eql('Item type not supported for purchase with Mystic Hourglass. Allowed types: ["pets","mounts"]');
|
expect(response.message).to.eql('Item type not supported for purchase with Mystic Hourglass. Allowed types: pets,mounts');
|
||||||
expect(user.items.hatchingPotions).to.eql({});
|
expect(user.items.hatchingPotions).to.eql({});
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user