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 Jun 16, 2020
1 parent 516b192 commit cd59543
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 04/02/2020', function () {
it('should contains at least 5 menus on 16/06/2020', function () {
return epflMenuApi.findMenu({
date: '04/02/2020',
restoId: '22',
date: '16/06/2020',
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 03/02/2020', function () {
it('should contains at least 1 menus on 07/05/2020', function () {
return epflMenuApi.findMenu({
date: '03/02/2020',
date: '07/05/2020',
restoId: 23,
tags: 'Végétalien'
}).then((menus) => {
const enoughMenus = Object.keys(menus).length > 0;
enoughMenus.should.equal(true);
});
});

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

0 comments on commit cd59543

Please sign in to comment.