Skip to content

Commit

Permalink
Merge 583d3a5 into 3e317a8
Browse files Browse the repository at this point in the history
  • Loading branch information
williambelle committed Aug 19, 2021
2 parents 3e317a8 + 583d3a5 commit 12a8dea
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/test-findMenu.js
Expand Up @@ -61,30 +61,30 @@ describe('epfl-menu-api findMenu', function () {
);
});

it('should contains at least 5 menus on 16/03/2021', function () {
it('should contains at least 5 menus on 16/08/2021', function () {
return epflMenuApi.findMenu({
date: '16/03/2021',
date: '16/08/2021',
tags: 'ViANde,Chicken, Pizza '
}).then((menus) => {
const enoughMenus = Object.keys(menus).length > 4;
enoughMenus.should.equal(true);
});
});

it('should contains at least 1 menus on 26/03/2021', function () {
it('should contains at least 1 menus on 16/08/2021', function () {
return epflMenuApi.findMenu({
date: '26/03/2021',
restoId: 18,
date: '16/08/2021',
restoId: 19,
tags: 'Végétarien'
}).then((menus) => {
const enoughMenus = Object.keys(menus).length > 0;
enoughMenus.should.equal(true);
});
});

it('should parse menus of 26/03/2021', function () {
it('should parse menus of 16/08/2021', function () {
return epflMenuApi.findMenu({
date: '26/03/2021',
date: '16/08/2021',
language: 'fr'
}).then((menus) => {
const enoughMenus = Object.keys(menus).length > 4;
Expand Down

0 comments on commit 12a8dea

Please sign in to comment.