From c098508e728a2ebc67807da046731f8767223bad Mon Sep 17 00:00:00 2001 From: Anne-Greeth Schot-van Herwijnen Date: Mon, 4 Jul 2022 17:41:55 +0200 Subject: [PATCH] Fix the tests Discussed with @mansona to remove the strict equal in favour of checking that the property exists --- test/lib/github-client.test.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/test/lib/github-client.test.js b/test/lib/github-client.test.js index 80d1def..3a4cb2e 100644 --- a/test/lib/github-client.test.js +++ b/test/lib/github-client.test.js @@ -603,16 +603,14 @@ describe('lib/github-client', function () { assert.isDefined(client); - assert.strictEqual( - client.supportedOrganizations.length, - 10, - 'We will support 10 organizations when searching GitHub issues.' + assert.ok( + client.supportedOrganizations.length > 0, + 'We support organizations when searching GitHub issues.' ); - assert.strictEqual( - client.supportedLabels.length, - 7, - 'We will support 7 labels when searching GitHub issues.' + assert.ok( + client.supportedLabels.length > 0, + 'We support labels when searching GitHub issues.' ); }); });