From cdeba2fdf957868ae06f7a36fb19607e47457bb3 Mon Sep 17 00:00:00 2001 From: Paul Melnikow <github@paulmelnikow.com> Date: Tue, 5 Feb 2019 21:49:40 -0500 Subject: [PATCH] Fix some service tests [circle dependabot githubissues] (#2936) --- services/circleci/circleci.tester.js | 2 +- services/dependabot/dependabot.tester.js | 2 +- services/github/github-issues.tester.js | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/services/circleci/circleci.tester.js b/services/circleci/circleci.tester.js index 2320619f8b..2cdb7d85dd 100644 --- a/services/circleci/circleci.tester.js +++ b/services/circleci/circleci.tester.js @@ -75,5 +75,5 @@ t.create('circle ci (invalid json)') .expectJSON({ name: 'build', value: 'invalid response data', - color: 'lightgray', + color: 'lightgrey', }) diff --git a/services/dependabot/dependabot.tester.js b/services/dependabot/dependabot.tester.js index 7a3f0f89f7..f2ae943761 100644 --- a/services/dependabot/dependabot.tester.js +++ b/services/dependabot/dependabot.tester.js @@ -21,7 +21,7 @@ t.create('semver stability (invalid error)') .expectJSON({ name: 'semver stability', value: 'invalid', - color: 'lightgray', + color: 'lightgrey', }) t.create('semver stability (missing dependency)') diff --git a/services/github/github-issues.tester.js b/services/github/github-issues.tester.js index 488d579d2b..725dbc61f0 100644 --- a/services/github/github-issues.tester.js +++ b/services/github/github-issues.tester.js @@ -99,13 +99,14 @@ t.create('GitHub open issues by label (raw)') }) ) -// See #1870 -t.create('GitHub open issues by label including slash charactr (raw)') +// https://github.com/badges/shields/issues/1870 +t.create('GitHub open issues by label including slash character (raw)') .get('/issues-raw/IgorNovozhilov/ndk/@ndk/cfg.json') .expectJSONTypes( Joi.object().keys({ name: 'open @ndk/cfg issues', - value: isMetric, + // Not always > 0. + value: Joi.alternatives(isMetric, Joi.equal('0')), }) ) -- GitLab