From 6e6144e02fdb939d0596da89e227298ea8f1a363 Mon Sep 17 00:00:00 2001 From: orangecoding Date: Tue, 15 Feb 2022 13:14:19 +0100 Subject: [PATCH] fixing tests --- test/provider/immowelt.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/provider/immowelt.test.js b/test/provider/immowelt.test.js index b3acd7f..1c1a07c 100644 --- a/test/provider/immowelt.test.js +++ b/test/provider/immowelt.test.js @@ -32,13 +32,13 @@ describe('#immowelt testsuite()', () => { /** check the actual structure **/ expect(notify.id).to.be.a('string'); expect(notify.price).to.be.a('string'); - expect(notify.size).to.be.a('string'); expect(notify.title).to.be.a('string'); + expect(notify.link).to.be.a('string'); expect(notify.address).to.be.a('string'); /** check the values if possible **/ - if (notify.size.trim().toLowerCase() !== 'k.a.') { + if (notify.size != null && notify.size.trim().toLowerCase() !== 'k.a.') { expect(notify.size).that.does.include('m²'); } expect(notify.title).to.be.not.empty;