Fix several typos (#9658)

This commit is contained in:
Kurt McKee
2023-10-13 10:40:57 -05:00
committed by GitHub
parent 164209a4b1
commit 9874db7841
10 changed files with 16 additions and 16 deletions

View File

@@ -32,13 +32,13 @@ describe('GithubDirectoryFileCount', function () {
})
})
it('throws InvalidParameter on receving an object as contents instead of an array', function () {
it('throws InvalidParameter on receiving an object as contents instead of an array', function () {
expect(() => GithubDirectoryFileCount.transform({}, {}))
.to.throw(InvalidParameter)
.with.property('prettyMessage', 'not a directory')
})
it('throws InvalidParameter on receving type dir and extension', function () {
it('throws InvalidParameter on receiving type dir and extension', function () {
expect(() =>
GithubDirectoryFileCount.transform(contents, {
type: 'dir',
@@ -52,7 +52,7 @@ describe('GithubDirectoryFileCount', function () {
)
})
it('throws InvalidParameter on receving no type and extension', function () {
it('throws InvalidParameter on receiving no type and extension', function () {
expect(() =>
GithubDirectoryFileCount.transform(contents, { extension: 'js' }),
)

View File

@@ -6,7 +6,7 @@ t.create('license (valid)')
.expectBadge({ label: 'license', message: 'MIT' })
// note: packagist does serve up license at the version level
// but our endpoint only supports fetching license for the lastest version
// but our endpoint only supports fetching license for the latest version
t.create('license (invalid, package version in request)')
.get('/symfony/symfony/v2.8.0.json')
.expectBadge({ label: '404', message: 'badge not found' })

View File

@@ -22,7 +22,7 @@ t.create('version (semver)').get('/requests.json').expectBadge({
message: isSemver,
})
// ..whereas this project does not folow SemVer
// ..whereas this project does not follow SemVer
t.create('version (not semver)').get('/psycopg2.json').expectBadge({
label: 'pypi',
message: isPsycopg2Version,

View File

@@ -6,12 +6,12 @@ const description = `<p>
</p>
<ul>
<li>
Label, message and color seperated by a dash <code>-</code>. For example:<br />
Label, message and color separated by a dash <code>-</code>. For example:<br />
<img alt="any text: you like" src="https://img.shields.io/badge/any_text-you_like-blue" /> -
<a href="https://img.shields.io/badge/any_text-you_like-blue">https://img.shields.io/badge/any_text-you_like-blue</a>
</li>
<li>
Message and color only, seperated by a dash <code>-</code>. For example:<br />
Message and color only, separated by a dash <code>-</code>. For example:<br />
<img alt="just the message" src="https://img.shields.io/badge/just%20the%20message-8A2BE2" /> -
<a href="https://img.shields.io/badge/just%20the%20message-8A2BE2">https://img.shields.io/badge/just%20the%20message-8A2BE2</a>
</li>
@@ -57,7 +57,7 @@ export default class StaticBadge extends BaseStaticService {
{
name: 'badgeContent',
description:
'Label, (optional) message, and color. Seperated by dashes',
'Label, (optional) message, and color. Separated by dashes',
in: 'path',
required: true,
schema: { type: 'string' },

View File

@@ -8,7 +8,7 @@ import Joi from 'joi'
/**
* Joi schema for validating query params.
* Checks if the query params obect has valid up_message, down_message, up_color and down_color properties.
* Checks if the query params object has valid up_message, down_message, up_color and down_color properties.
*
* @type {Joi}
*/