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 Nov 13, 2020
1 parent b208f9f commit be53b15
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/06/2020', function () {
it('should contains at least 5 menus on 16/10/2020', function () {
return epflMenuApi.findMenu({
date: '16/06/2020',
date: '16/10/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 07/05/2020', function () {
it('should contains at least 1 menus on 30/10/2020', function () {
return epflMenuApi.findMenu({
date: '07/05/2020',
date: '30/10/2020',
restoId: 23,
tags: 'Végétalien'
tags: 'Végétarien'
}).then((menus) => {
const enoughMenus = Object.keys(menus).length > 0;
enoughMenus.should.equal(true);
});
});

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

0 comments on commit be53b15

Please sign in to comment.