2016-07-26 19:36:55 +00:00
|
|
|
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 () => {
|
2019-10-08 18:45:38 +00:00
|
|
|
const shop = await user.get('/shops/seasonal');
|
2016-07-26 19:36:55 +00:00
|
|
|
|
|
|
|
|
expect(shop.identifier).to.equal('seasonalShop');
|
|
|
|
|
expect(shop.text).to.eql(t('seasonalShop'));
|
2016-11-04 20:38:29 +00:00
|
|
|
expect(shop.notes).to.be.a('string');
|
2016-07-26 19:36:55 +00:00
|
|
|
expect(shop.imageName).to.be.a('string');
|
|
|
|
|
expect(shop.categories).to.be.an('array');
|
|
|
|
|
});
|
|
|
|
|
});
|