committed by
Paul Melnikow
parent
d6c875c519
commit
9b3fd375bb
@@ -43,7 +43,7 @@ function DownloadsForExtensionType(extensionType) {
|
||||
static get examples() {
|
||||
return [
|
||||
{
|
||||
title: `Wordpress ${capt} Downloads`,
|
||||
title: `WordPress ${capt} Downloads`,
|
||||
namedParams: { slug: exampleSlug },
|
||||
staticPreview: this.render({ downloads: 200000 }),
|
||||
},
|
||||
@@ -93,7 +93,7 @@ function InstallsForExtensionType(extensionType) {
|
||||
static get examples() {
|
||||
return [
|
||||
{
|
||||
title: `Wordpress ${capt} Active Installs`,
|
||||
title: `WordPress ${capt} Active Installs`,
|
||||
namedParams: { slug: exampleSlug },
|
||||
staticPreview: this.render({ installCount: 300000 }),
|
||||
},
|
||||
|
||||
@@ -6,7 +6,7 @@ const { isMetric, isMetricOverTimePeriod } = require('../test-validators')
|
||||
|
||||
const t = new ServiceTester({
|
||||
id: 'wordpress',
|
||||
title: 'Wordpress Download Tests',
|
||||
title: 'WordPress Download Tests',
|
||||
})
|
||||
module.exports = t
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ class WordpressPluginRequiresVersion extends BaseWordpress {
|
||||
static get examples() {
|
||||
return [
|
||||
{
|
||||
title: 'Wordpress Plugin: Required WP Version',
|
||||
title: 'WordPress Plugin: Required WP Version',
|
||||
namedParams: { slug: 'bbpress' },
|
||||
staticPreview: this.render({ wordpressVersion: '4.8' }),
|
||||
},
|
||||
@@ -62,7 +62,7 @@ class WordpressPluginTestedVersion extends BaseWordpress {
|
||||
static get examples() {
|
||||
return [
|
||||
{
|
||||
title: 'Wordpress Plugin: Tested WP Version',
|
||||
title: 'WordPress Plugin: Tested WP Version',
|
||||
namedParams: { slug: 'bbpress' },
|
||||
staticPreview: this.renderStaticPreview({
|
||||
testedVersion: '4.9.8',
|
||||
|
||||
@@ -6,7 +6,7 @@ const { isVPlusDottedVersionAtLeastOne } = require('../test-validators')
|
||||
|
||||
const t = (module.exports = new ServiceTester({
|
||||
id: 'WordpressPlatform',
|
||||
title: 'Wordpress Platform Tests',
|
||||
title: 'WordPress Platform Tests',
|
||||
pathPrefix: '/wordpress',
|
||||
}))
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ function RatingForExtensionType(extensionType) {
|
||||
static get examples() {
|
||||
return [
|
||||
{
|
||||
title: `Wordpress ${capt} Rating`,
|
||||
title: `WordPress ${capt} Rating`,
|
||||
namedParams: { slug: exampleSlug },
|
||||
staticPreview: this.render({
|
||||
response: {
|
||||
@@ -91,7 +91,7 @@ function StarsForExtensionType(extensionType) {
|
||||
static get examples() {
|
||||
return [
|
||||
{
|
||||
title: `Wordpress ${capt} Rating`,
|
||||
title: `WordPress ${capt} Rating`,
|
||||
pattern: 'stars/:slug',
|
||||
namedParams: { slug: exampleSlug },
|
||||
staticPreview: this.render({
|
||||
|
||||
@@ -5,7 +5,7 @@ const { isStarRating } = require('../test-validators')
|
||||
|
||||
const t = new ServiceTester({
|
||||
id: 'wordpress',
|
||||
title: 'Wordpress Rating Tests',
|
||||
title: 'WordPress Rating Tests',
|
||||
})
|
||||
module.exports = t
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
const { expect } = require('chai')
|
||||
const { versionColorForWordpressVersion } = require('./wordpress-version-color')
|
||||
|
||||
describe('Wordpress version color helpers', function() {
|
||||
describe('WordPress version color helpers', function() {
|
||||
it('versionColorForWordpressVersion()', async function() {
|
||||
expect(await versionColorForWordpressVersion('11.2.0')).to.equal(
|
||||
'brightgreen'
|
||||
|
||||
@@ -35,7 +35,7 @@ function VersionForExtensionType(extensionType) {
|
||||
static get examples() {
|
||||
return [
|
||||
{
|
||||
title: `Wordpress ${capt} Version`,
|
||||
title: `WordPress ${capt} Version`,
|
||||
namedParams: { slug: exampleSlug },
|
||||
staticPreview: this.render({ version: 2.5 }),
|
||||
},
|
||||
|
||||
@@ -5,7 +5,7 @@ const { isVPlusDottedVersionAtLeastOne } = require('../test-validators')
|
||||
|
||||
const t = (module.exports = new ServiceTester({
|
||||
id: 'wordpress',
|
||||
title: 'Wordpress Version Tests',
|
||||
title: 'WordPress Version Tests',
|
||||
}))
|
||||
|
||||
t.create('Plugin Version')
|
||||
|
||||
Reference in New Issue
Block a user