fixing provider and their tests

This commit is contained in:
Christian Kellner
2020-02-16 13:09:15 +01:00
parent 9106144d9c
commit e676812688
8 changed files with 25 additions and 20 deletions

View File

@@ -38,7 +38,7 @@ describe('#einsAImmobilien testsuite()', () => {
/** check the values if possible **/
expect(notify.id).to.equal(immonetDbContent.einsAImmobilien[idx]);
expect(notify.price).that.does.include('EUR');
expect(notify.size).that.does.include('m²');
expect(notify.size).to.be.not.empty;
expect(notify.title).to.be.not.empty;
expect(notify.link).that.does.include('https://www.1a-immobilienmarkt.de');
});

View File

@@ -25,7 +25,6 @@ describe('#immoscout testsuite()', () => {
expect(notificationObj).to.be.a('object');
expect(notificationObj.serviceName).to.equal('immoscout');
notificationObj.payload.forEach((notify, idx) => {
/** check the actual structure **/
expect(notify.id).to.be.a('number');
@@ -46,7 +45,7 @@ describe('#immoscout testsuite()', () => {
expect(notify.address).to.be.not.empty;
});
resolve();
}).catch(resolve);
});
});
});
});