mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-29 06:07:32 +00:00
23 lines
580 B
JavaScript
23 lines
580 B
JavaScript
|
|
import {
|
||
|
|
generateUser,
|
||
|
|
translate as t,
|
||
|
|
} from '../../../../helpers/api-integration/v3';
|
||
|
|
|
||
|
|
describe('GET /shops/seasonal', () => {
|
||
|
|
let user;
|
||
|
|
|
||
|
|
beforeEach(async () => {
|
||
|
|
user = await generateUser();
|
||
|
|
});
|
||
|
|
|
||
|
|
it('returns a valid shop object', async () => {
|
||
|
|
let shop = await user.get('/shops/seasonal');
|
||
|
|
|
||
|
|
expect(shop.identifier).to.equal('seasonalShop');
|
||
|
|
expect(shop.text).to.eql(t('seasonalShop'));
|
||
|
|
expect(shop.notes).to.eql(t('seasonalShopSummerText'));
|
||
|
|
expect(shop.imageName).to.be.a('string');
|
||
|
|
expect(shop.categories).to.be.an('array');
|
||
|
|
});
|
||
|
|
});
|