diff --git a/test/test-email.js b/test/test-email.js index 0b1c9e9..52ec6ce 100644 --- a/test/test-email.js +++ b/test/test-email.js @@ -9,7 +9,9 @@ require('chai').should(); const epflPeopleApi = require('../src/index.js'); -describe('epfl-people-api findByEmail', () => { +describe('epfl-people-api findByEmail', function () { + this.timeout(10000); + it('should throw an exception with email xxx', () => { return epflPeopleApi.findByEmail('xxx', 'en').then(() => { }).catch((err) => err.message.should.equal('Expected an email')); @@ -35,13 +37,13 @@ describe('epfl-people-api findByEmail', () => { }); }); - it('should find email gregory.charmier@epfl.ch', () => { + it('should find email yves.junod@epfl.ch', () => { return epflPeopleApi.findByEmail( - 'gregory.charmier@epfl.ch' + 'yves.junod@epfl.ch' ).then((res) => { - res.name.should.equal('Charmier'); - res.firstname.should.equal('Grégory'); - res.office.should.equal('INN 013'); + res.name.should.equal('Junod'); + res.firstname.should.equal('Yves'); + res.office.should.equal('MA B0 449'); }); }); }); diff --git a/test/test-sciper.js b/test/test-sciper.js index ee3ebff..f8e35cf 100644 --- a/test/test-sciper.js +++ b/test/test-sciper.js @@ -58,11 +58,11 @@ describe('epfl-people-api findBySciper', function () { }); }); - it('should find sciper 188475', function () { - return epflPeopleApi.findBySciper(188475, undefined).then((res) => { - res.name.should.equal('Charmier'); - res.firstname.should.equal('Grégory'); - res.office.should.equal('INN 013'); + it('should find sciper 160781', function () { + return epflPeopleApi.findBySciper(160781, undefined).then((res) => { + res.name.should.equal('Junod'); + res.firstname.should.equal('Yves'); + res.office.should.equal('MA B0 449'); }); }); });