Skip to content

Commit

Permalink
update tests with recents menus
Browse files Browse the repository at this point in the history
  • Loading branch information
williambelle committed Mar 26, 2021
1 parent f02ecd0 commit f7914f2
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/10/2020', function () {
it('should contains at least 5 menus on 16/03/2021', function () {
return epflMenuApi.findMenu({
date: '16/10/2020',
date: '16/03/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 30/10/2020', function () {
it('should contains at least 1 menus on 26/03/2021', function () {
return epflMenuApi.findMenu({
date: '30/10/2020',
restoId: 23,
date: '26/03/2021',
restoId: 18,
tags: 'Végétarien'
}).then((menus) => {
const enoughMenus = Object.keys(menus).length > 0;
enoughMenus.should.equal(true);
});
});

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

0 comments on commit f7914f2

Please sign in to comment.