From 14473dd51d939adf425b3279cd7b0c0a055d407f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Tue, 10 Apr 2018 01:58:52 +0300 Subject: [PATCH] fix: misc. spelling errors (#4421) --- src/core/plugins/ast/ast.js | 4 ++-- src/core/plugins/ast/jump-to-path.jsx | 2 +- src/core/utils.js | 6 +++--- src/plugins/add-plugin.md | 2 +- test/core/oauth2-authorize.js | 2 +- test/e2e/scenarios/refs.js | 2 +- test/e2e/specs/refs/api2.yaml | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/core/plugins/ast/ast.js b/src/core/plugins/ast/ast.js index 880cdb38..752f8faf 100644 --- a/src/core/plugins/ast/ast.js +++ b/src/core/plugins/ast/ast.js @@ -81,8 +81,8 @@ export function getLineNumberForPath(yaml, path) { * YAML or JSON string * @param {array} path * an array of stings that constructs a -* JSON Path similiar to JSON Pointers(RFC 6901). The difference is, each -* component of path is an item of the array intead of beinf seperated with +* JSON Path similar to JSON Pointers(RFC 6901). The difference is, each +* component of path is an item of the array instead of being separated with * slash(/) in a string */ export function positionRangeForPath(yaml, path) { diff --git a/src/core/plugins/ast/jump-to-path.jsx b/src/core/plugins/ast/jump-to-path.jsx index 5f385982..4919bab6 100644 --- a/src/core/plugins/ast/jump-to-path.jsx +++ b/src/core/plugins/ast/jump-to-path.jsx @@ -1,6 +1,6 @@ import React from "react" -// Nothing by default- component can be overriden by another plugin. +// Nothing by default- component can be overridden by another plugin. export default class JumpToPath extends React.Component { render() { diff --git a/src/core/utils.js b/src/core/utils.js index 913801ce..07f225db 100644 --- a/src/core/utils.js +++ b/src/core/utils.js @@ -10,7 +10,7 @@ import { memoizedSampleFromSchema, memoizedCreateXMLExample } from "core/plugins import win from "./window" import cssEscape from "css.escape" -const DEFAULT_REPONSE_KEY = "default" +const DEFAULT_RESPONSE_KEY = "default" export const isImmutable = (maybe) => Im.Iterable.isIterable(maybe) @@ -128,7 +128,7 @@ export function systemThunkMiddleware(getSystem) { export function defaultStatusCode ( responses ) { let codes = responses.keySeq() - return codes.contains(DEFAULT_REPONSE_KEY) ? DEFAULT_REPONSE_KEY : codes.filter( key => (key+"")[0] === "2").sort().first() + return codes.contains(DEFAULT_RESPONSE_KEY) ? DEFAULT_RESPONSE_KEY : codes.filter( key => (key+"")[0] === "2").sort().first() } @@ -193,7 +193,7 @@ export function highlight (el) { // running through characters and highlighting while (prev2 = prev1, // escaping if needed (with except for comments) - // pervious character will not be therefore + // previous character will not be therefore // recognized as a token finalize condition prev1 = tokenType < 7 && prev1 == "\\" ? 1 : chr ) { diff --git a/src/plugins/add-plugin.md b/src/plugins/add-plugin.md index 593f4f62..f72acbd9 100644 --- a/src/plugins/add-plugin.md +++ b/src/plugins/add-plugin.md @@ -6,7 +6,7 @@ Plugins allow you to add - `statePlugins` - `selectors` - query the state - `reducers` - modify the state - - `actions` - fire and forget, that will eventually be handled by a reducer. You *can* rely on the result of async actions. But in general its not recommended + - `actions` - fire and forget, that will eventually be handled by a reducer. You *can* rely on the result of async actions. But in general it's not recommended - `wrapActions` - replace an action with a wrapped action (useful for hooking into existing `actions`) - `components` - React components - `fn` - commons functions diff --git a/test/core/oauth2-authorize.js b/test/core/oauth2-authorize.js index c4fed4ba..2ea35342 100644 --- a/test/core/oauth2-authorize.js +++ b/test/core/oauth2-authorize.js @@ -28,7 +28,7 @@ describe("oauth2", function () { expect(win.open.calls[0].arguments[0]).toMatch("https://testAuthorizationUrl?response_type=code&redirect_uri=&state=") }) - it("should append query paramters to authorizeUrl with query parameters", function() { + it("should append query parameters to authorizeUrl with query parameters", function() { win.open = createSpy() mockSchema.authorizationUrl = "https://testAuthorizationUrl?param=1" oauth2Authorize(authConfig) diff --git a/test/e2e/scenarios/refs.js b/test/e2e/scenarios/refs.js index e8296507..f52a1986 100644 --- a/test/e2e/scenarios/refs.js +++ b/test/e2e/scenarios/refs.js @@ -19,7 +19,7 @@ describe("Remote $ref rendering", function () { }) it("renders a remote $ref correctly", function (client) { - mainPage.expect.element("#model-TestResponse > span > div > span > span > span.inner-object > table > tbody > tr:nth-child(2) > td:nth-child(2) > span > span > div > div > p").text.to.equal("this is a api2prop") + mainPage.expect.element("#model-TestResponse > span > div > span > span > span.inner-object > table > tbody > tr:nth-child(2) > td:nth-child(2) > span > span > div > div > p").text.to.equal("this is an api2prop") client.end() }) diff --git a/test/e2e/specs/refs/api2.yaml b/test/e2e/specs/refs/api2.yaml index 17b855e4..a9f9d92a 100644 --- a/test/e2e/specs/refs/api2.yaml +++ b/test/e2e/specs/refs/api2.yaml @@ -21,7 +21,7 @@ components: schemas: Api2Prop: type: string - description: this is a api2prop + description: this is an api2prop example: 'api1prop-value' TestResponse2: