diff --git a/core/server/public/monitor.html b/core/server/public/monitor.html deleted file mode 100644 index 4475bcc82de53..0000000000000 --- a/core/server/public/monitor.html +++ /dev/null @@ -1,66 +0,0 @@ - - Shields.io Admin Monitoring Interface - - -
-

Please enter your admin secret here: - -

-
-
- - diff --git a/services/wordpress/wordpress-version-color.integration.js b/services/wordpress/wordpress-version-color.integration.js new file mode 100644 index 0000000000000..5f4b6ce832a4c --- /dev/null +++ b/services/wordpress/wordpress-version-color.integration.js @@ -0,0 +1,23 @@ +import { expect } from 'chai' +import { versionColorForWordpressVersion } from './wordpress-version-color.js' + +describe('versionColorForWordpressVersion()', function () { + it('generates correct colours for given versions', async function () { + this.timeout(5e3) + + expect(await versionColorForWordpressVersion('11.2.0')).to.equal( + 'brightgreen' + ) + expect(await versionColorForWordpressVersion('11.2')).to.equal( + 'brightgreen' + ) + expect(await versionColorForWordpressVersion('3.2.0')).to.equal('yellow') + expect(await versionColorForWordpressVersion('3.2')).to.equal('yellow') + expect(await versionColorForWordpressVersion('4.7-beta.3')).to.equal( + 'yellow' + ) + expect(await versionColorForWordpressVersion('cheese')).to.equal( + 'lightgrey' + ) + }) +}) diff --git a/services/wordpress/wordpress-version-color.spec.js b/services/wordpress/wordpress-version-color.spec.js index c428886c55347..60ba668b4d8b1 100644 --- a/services/wordpress/wordpress-version-color.spec.js +++ b/services/wordpress/wordpress-version-color.spec.js @@ -1,8 +1,5 @@ import { expect } from 'chai' -import { - toSemver, - versionColorForWordpressVersion, -} from './wordpress-version-color.js' +import { toSemver } from './wordpress-version-color.js' describe('toSemver() function', function () { it('coerces versions', function () { @@ -13,24 +10,3 @@ describe('toSemver() function', function () { expect(toSemver('foobar')).to.equal('foobar') }) }) - -describe('versionColorForWordpressVersion()', function () { - it('generates correct colours for given versions', async function () { - this.timeout(5e3) - - expect(await versionColorForWordpressVersion('11.2.0')).to.equal( - 'brightgreen' - ) - expect(await versionColorForWordpressVersion('11.2')).to.equal( - 'brightgreen' - ) - expect(await versionColorForWordpressVersion('3.2.0')).to.equal('yellow') - expect(await versionColorForWordpressVersion('3.2')).to.equal('yellow') - expect(await versionColorForWordpressVersion('4.7-beta.3')).to.equal( - 'yellow' - ) - expect(await versionColorForWordpressVersion('cheese')).to.equal( - 'lightgrey' - ) - }) -})