From 6b6345f4b059a4aae7c5584584e3615fb288e4f6 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sat, 2 May 2026 00:55:08 +0100 Subject: [PATCH] Fixed various typos --- commands/plugin-install.js | 2 +- docs/events/apigateway.md | 2 +- docs/events/cloudfront.md | 2 +- docs/events/event-bridge.md | 2 +- docs/events/s3.md | 2 +- docs/events/sns.md | 2 +- docs/events/websocket.md | 2 +- docs/guides/serverless.yml.md | 4 +-- docs/guides/testing.md | 2 +- docs/guides/variables.md | 2 +- lib/aws/request.js | 2 +- .../resolve-ajv-validate.js | 2 +- lib/classes/plugin-manager.js | 4 +-- lib/classes/service.js | 8 +++--- lib/config-schema.js | 2 +- lib/configuration/variables/resolve.js | 2 +- .../api-gateway-cloud-watch-role/handler.js | 2 +- lib/plugins/aws/package/compile/functions.js | 2 +- .../aws/utils/format-lambda-log-event.js | 26 +++++++++---------- lib/serverless.js | 2 +- lib/utils/download-template-from-repo.js | 2 +- lib/utils/serverless-utils/log.js | 2 +- test/README.md | 8 +++--- .../iot-fleet-provisioning/register-device.js | 20 +++++++------- test/integration-basic.test.js | 2 +- test/integration/aws/api-gateway.test.js | 2 +- .../aws/infra-dependent/msk.test.js | 2 +- .../rm-tmp-dir-ignorable-error-codes.js | 2 +- test/lib/run-serverless.js | 2 +- .../normalize-ajv-errors.test.js | 2 +- test/unit/lib/classes/plugin-manager.test.js | 8 +++--- test/unit/lib/cli/parse-args.test.js | 4 +-- test/unit/lib/configuration/read.test.js | 2 +- .../lib/configuration/variables/parse.test.js | 4 +-- .../variables/sources/file.test.js | 8 +++--- .../variables/sources/self.test.js | 2 +- .../aws/deploy/lib/check-for-changes.test.js | 8 +++--- .../api-gateway/lib/method/index.test.js | 2 +- .../events/api-gateway/lib/validate.test.js | 2 +- .../compile/events/event-bridge/index.test.js | 4 +-- .../package/compile/events/msk/index.test.js | 2 +- .../aws/package/compile/events/sns.test.js | 4 +-- .../aws/package/compile/events/sqs.test.js | 12 ++++----- .../unit/lib/plugins/aws/remove/index.test.js | 4 +-- .../utils/download-template-from-repo.test.js | 6 ++--- test/unit/lib/utils/yaml-ast-parser.test.js | 2 +- 46 files changed, 96 insertions(+), 96 deletions(-) diff --git a/commands/plugin-install.js b/commands/plugin-install.js index 5ca43324ed..ce9cfedf86 100644 --- a/commands/plugin-install.js +++ b/commands/plugin-install.js @@ -101,7 +101,7 @@ const addPluginToServerlessFile = async ({ configurationFilePath, pluginName }) schema: cloudformationSchema, }); if (serverlessFileObj.plugins != null) { - // Plugins section can be behind veriables, opt-out in such case + // Plugins section can be behind variables, opt-out in such case if (isPlainObject(serverlessFileObj.plugins)) { if ( serverlessFileObj.plugins.modules != null && diff --git a/docs/events/apigateway.md b/docs/events/apigateway.md index cb2cd8393e..f6e49d83ba 100644 --- a/docs/events/apigateway.md +++ b/docs/events/apigateway.md @@ -330,7 +330,7 @@ functions: - X-Amz-User-Agent - X-Amzn-Trace-Id allowCredentials: false - # Caches on browser and proxy for 10 minutes and doesnt allow proxy to serve out of date content + # Caches on browser and proxy for 10 minutes and doesn't allow proxy to serve out of date content cacheControl: 'max-age=600, s-maxage=600, proxy-revalidate' ``` diff --git a/docs/events/cloudfront.md b/docs/events/cloudfront.md index 6032fc3201..f069eef7b4 100644 --- a/docs/events/cloudfront.md +++ b/docs/events/cloudfront.md @@ -226,7 +226,7 @@ functions: id: 658327ea-f89d-4fab-a63d-7e88639e58f6 # references AWS Managed Policy named Managed-CachingOptimized ``` -It is also possible to reference policies with `behavior.CachePolicyId` property. When both `cachePolicy.id` and `behavior.CachePolicyId` are specified, setting from `cachePolicy.id` will be used. Similarily, when `cachePolicy.name` and `behavior.CachePolicyId` are specified, setting from `cachePolicy.name` will be used. +It is also possible to reference policies with `behavior.CachePolicyId` property. When both `cachePolicy.id` and `behavior.CachePolicyId` are specified, setting from `cachePolicy.id` will be used. Similarly, when `cachePolicy.name` and `behavior.CachePolicyId` are specified, setting from `cachePolicy.name` will be used. ```yml functions: diff --git a/docs/events/event-bridge.md b/docs/events/event-bridge.md index 412e74a416..bbf7d5725f 100644 --- a/docs/events/event-bridge.md +++ b/docs/events/event-bridge.md @@ -112,7 +112,7 @@ functions: - saas.external ``` -### Re-using an existing event bus +### Reusing an existing event bus If you want to reuse an existing event bus, you can define it with literal `arn` or with a reference to an existing event bus name via CF intrinsic functions. Referencing via intrinsic functions is available only if you use native CloudFormation support with `provider.eventBridge.useCloudFormation: true` setting: diff --git a/docs/events/s3.md b/docs/events/s3.md index 2589c8fff9..4af5554e0e 100644 --- a/docs/events/s3.md +++ b/docs/events/s3.md @@ -121,7 +121,7 @@ functions: ## Forcing deploying of triggers -An S3 bucket with triggers attached may not be correctly updated by AWS Cloudformation on subsequent deployments. To circumvent this issue you can use the `forceDeploy` flag which will try to force Cloudformation to update the triggers no matter what. This has to be used in conjuction with the `existing: true` flag. +An S3 bucket with triggers attached may not be correctly updated by AWS Cloudformation on subsequent deployments. To circumvent this issue you can use the `forceDeploy` flag which will try to force Cloudformation to update the triggers no matter what. This has to be used in conjunction with the `existing: true` flag. ```yml functions: diff --git a/docs/events/sns.md b/docs/events/sns.md index d0badb1ee8..e64446dbec 100644 --- a/docs/events/sns.md +++ b/docs/events/sns.md @@ -158,7 +158,7 @@ functions: ## Setting a redrive policy -This event definition creates an SNS topic that sends messages to a Dead Letter Queue (defined by its ARN) when the associated lambda is not available. In this example, messages that aren't delivered to the `dispatcher` Lambda (because the lambda service is down or irresponsive) will end in `myDLQ`. +This event definition creates an SNS topic that sends messages to a Dead Letter Queue (defined by its ARN) when the associated lambda is not available. In this example, messages that aren't delivered to the `dispatcher` Lambda (because the lambda service is down or unresponsive) will end in `myDLQ`. ```yml functions: diff --git a/docs/events/websocket.md b/docs/events/websocket.md index a66c3e52a1..a5c3fb00dd 100644 --- a/docs/events/websocket.md +++ b/docs/events/websocket.md @@ -1,6 +1,6 @@ # Websocket -[Websockets](https://www.w3.org/TR/websockets/) make it possible to add support for a bi-directional communication channel between clients and servers. Connection channels are kept alive and are re-used to exchange messages back-and-forth. +[Websockets](https://www.w3.org/TR/websockets/) make it possible to add support for a bi-directional communication channel between clients and servers. Connection channels are kept alive and are reused to exchange messages back-and-forth. The Serverless Framework makes it possible to setup an [API Gateway powered](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-overview.html) Websocket backend with the help of the `websocket` event. diff --git a/docs/guides/serverless.yml.md b/docs/guides/serverless.yml.md index 36a891b698..105a75f92c 100644 --- a/docs/guides/serverless.yml.md +++ b/docs/guides/serverless.yml.md @@ -1051,7 +1051,7 @@ functions: ### Kafka -[Kakfa events](../events/kafka.md): +[Kafka events](../events/kafka.md): ```yaml functions: @@ -1264,7 +1264,7 @@ functions: pattern: source: - saas.external - # Re-use an existing event bus + # Reuse an existing event bus - eventBridge: eventBus: arn:aws:events:us-east-1:12345:event-bus/custom-private-events pattern: diff --git a/docs/guides/testing.md b/docs/guides/testing.md index f660e3c8d2..9ec0db4076 100644 --- a/docs/guides/testing.md +++ b/docs/guides/testing.md @@ -73,7 +73,7 @@ module.exports.saveUser = async (event) => { }; ``` -Now, the above class keeps business logic separate. Further, the code responsible for setting up dependencies, injecting them, calling business logic functions and interacting with AWS Lambda is in its own file, which will be changed less often. This way, the business logic is not provider dependent, easier to re-use, and easier to test. +Now, the above class keeps business logic separate. Further, the code responsible for setting up dependencies, injecting them, calling business logic functions and interacting with AWS Lambda is in its own file, which will be changed less often. This way, the business logic is not provider dependent, easier to reuse, and easier to test. Further, this code doesn't require running any external services. Instead of real `db` and `mailer` services, we can pass mocks and assert that `db.saveUser` and `mailer.sendWelcomeEmail` have been called with the proper arguments. diff --git a/docs/guides/variables.md b/docs/guides/variables.md index f389f0ccbf..db83389da2 100644 --- a/docs/guides/variables.md +++ b/docs/guides/variables.md @@ -97,7 +97,7 @@ In the above example you're setting a global schedule for all functions by refer ## Referencing Serverless Core Variables -Serverless initializes core variables which are used internally by the Framework itself. Those values are exposed via the Serverless Variables system and can be re-used with the `{sls:}` variable prefix. +Serverless initializes core variables which are used internally by the Framework itself. Those values are exposed via the Serverless Variables system and can be reused with the `{sls:}` variable prefix. The following variables are available: diff --git a/lib/aws/request.js b/lib/aws/request.js index 5c1d169f8e..071bbc07bd 100644 --- a/lib/aws/request.js +++ b/lib/aws/request.js @@ -119,7 +119,7 @@ let requestCounter = 0; * @prop [service.name] - Name of the service to call, support subclasses * @prop [service.params] - Parameters to apply when creating the service and doing the request * @prop [service.params.credentials] - AWS Credentials to use - * @prop [service.params.useCache ] - Wether to reuse result of the same request cached locally + * @prop [service.params.useCache ] - Whether to reuse result of the same request cached locally * @prop [service.params.region] - Region in which the call should be made (default to us-east-1) * @prop [service.params.isS3TransferAccelerationEnabled] - Use s3 acceleration when available for the request * @param {String} method - Method to call diff --git a/lib/classes/config-schema-handler/resolve-ajv-validate.js b/lib/classes/config-schema-handler/resolve-ajv-validate.js index d84022d241..d8f79dab7a 100644 --- a/lib/classes/config-schema-handler/resolve-ajv-validate.js +++ b/lib/classes/config-schema-handler/resolve-ajv-validate.js @@ -45,7 +45,7 @@ const getValidate = async (schema) => { code: { source: true }, }); require('ajv-formats').default(ajv); - // Ensure AJV related packages work well when there are mutliple AJV installations around + // Ensure AJV related packages work well when there are multiple AJV installations around // See: https://github.com/ajv-validator/ajv/issues/1390#issuecomment-763138202 ajv.opts.code.formats = Ajv._`require("ajv-formats/dist/formats").fullFormats`; ajv.addKeyword(require('./regexp-keyword')); diff --git a/lib/classes/plugin-manager.js b/lib/classes/plugin-manager.js index 24e60b6a6f..afa5abc022 100644 --- a/lib/classes/plugin-manager.js +++ b/lib/classes/plugin-manager.js @@ -293,7 +293,7 @@ class PluginManager { // Deny self overrides if (command.startsWith(alias)) { throw new ServerlessError( - `Command "${alias}" cannot be overriden by an alias`, + `Command "${alias}" cannot be overridden by an alias`, 'INVALID_COMMAND_ALIAS' ); } @@ -323,7 +323,7 @@ class PluginManager { }, this) ) { throw new ServerlessError( - `Command "${alias}" cannot be overriden by an alias`, + `Command "${alias}" cannot be overridden by an alias`, 'INVALID_COMMAND_ALIAS' ); } diff --git a/lib/classes/service.js b/lib/classes/service.js index 33996c0038..60c439defb 100644 --- a/lib/classes/service.js +++ b/lib/classes/service.js @@ -58,7 +58,7 @@ class Service { loadServiceFileParam() { // Not used internally, left set to not break plugins which depend on it - // TOOD: Remove with next major + // TODO: Remove with next major this.serviceFilename = this.serverless.configurationFilename; const configurationInput = this.serverless.configurationInput; @@ -73,14 +73,14 @@ class Service { // 3. In "run" phase: Instead of relying on `serverless.service` rely on // `serverless.configuration` internally - // Below comments provide usage feedback helfpul for future refactor process. + // Below comments provide usage feedback helpful for future refactor process. // ## Properties currently accessed at "initialization" phase this.disabledDeprecations = configurationInput.disabledDeprecations; this.deprecationNotificationMode = configurationInput.deprecationNotificationMode; - // `provider` (`provder.name` by many plugin constructs, and few other core properties as + // `provider` (`provider.name` by many plugin constructs, and few other core properties as // `provider.stage` are read by dashboard plugin) if (!isObject(configurationInput.provider)) { const providerName = configurationInput.provider; @@ -173,7 +173,7 @@ class Service { ); } if (!isObject(configurationInput.provider)) { - // Schema uncoditionally expects `provider` to be an object. + // Schema unconditionally expects `provider` to be an object. // Ideally if it's fixed at some point, and either we do not support string notation for // provider, or we support string by schema configurationInput.provider = this.provider; diff --git a/lib/config-schema.js b/lib/config-schema.js index 456f151fe3..e4786cfd29 100644 --- a/lib/config-schema.js +++ b/lib/config-schema.js @@ -47,7 +47,7 @@ const schema = { type: 'array', items: { /* - * `anyOf` array by JSON schema spec cannot be empty, threfore we start + * `anyOf` array by JSON schema spec cannot be empty, therefore we start * with one dummy item as workaround to ensure it validates against * any undefined function events. */ diff --git a/lib/configuration/variables/resolve.js b/lib/configuration/variables/resolve.js index 0aa7d04804..eeba2e9fe1 100644 --- a/lib/configuration/variables/resolve.js +++ b/lib/configuration/variables/resolve.js @@ -191,7 +191,7 @@ class VariablesResolver { // Resolve a single variable, which could be configured with multiple // (first-choice, and fallback) sources - // Work on a copy, as with mulitple resolution batches, there's a rare possibility of same + // Work on a copy, as with multiple resolution batches, there's a rare possibility of same // variable being resolved multiple times at once const sources = Array.from(variableMeta.sources); for (const source of sources) { diff --git a/lib/plugins/aws/custom-resources/resources/api-gateway-cloud-watch-role/handler.js b/lib/plugins/aws/custom-resources/resources/api-gateway-cloud-watch-role/handler.js index 70a857eacc..654d88dcb6 100644 --- a/lib/plugins/aws/custom-resources/resources/api-gateway-cloud-watch-role/handler.js +++ b/lib/plugins/aws/custom-resources/resources/api-gateway-cloud-watch-role/handler.js @@ -45,7 +45,7 @@ async function create(event, context) { let roleArn = `arn:${partition}:iam::${accountId}:role/serverlessApiGatewayCloudWatchRole`; if (RoleArn) { - // if there's a roleArn in the Resource Properties, just re-use it here + // if there's a roleArn in the Resource Properties, just reuse it here roleArn = RoleArn; } else { // Create an own API Gateway role if the roleArn was not set via Resource Properties diff --git a/lib/plugins/aws/package/compile/functions.js b/lib/plugins/aws/package/compile/functions.js index df9a99e79e..95e0d4baf2 100644 --- a/lib/plugins/aws/package/compile/functions.js +++ b/lib/plugins/aws/package/compile/functions.js @@ -466,7 +466,7 @@ class AwsCompileFunctions { if (functionObject.layers) { functionResource.Properties.Layers = functionObject.layers; } else if (this.serverless.service.provider.layers) { - // To avoid unwanted side effects ensure to not reference same array instace on each function + // To avoid unwanted side effects ensure to not reference same array instance on each function functionResource.Properties.Layers = Array.from(this.serverless.service.provider.layers); } diff --git a/lib/plugins/aws/utils/format-lambda-log-event.js b/lib/plugins/aws/utils/format-lambda-log-event.js index e80812a1df..a25299bdd8 100644 --- a/lib/plugins/aws/utils/format-lambda-log-event.js +++ b/lib/plugins/aws/utils/format-lambda-log-event.js @@ -15,10 +15,10 @@ module.exports = (msgParam) => { } if (msg.startsWith('REPORT')) { - const splitted = msg.split('\t'); - const duration = splitted[1]; - const maxMemoryUsed = splitted[4].slice(4); - const initDuration = splitted[5] && splitted[5].split(':')[1]; + const parts = msg.split('\t'); + const duration = parts[1]; + const maxMemoryUsed = parts[4].slice(4); + const initDuration = parts[5] && parts[5].split(':')[1]; // Simplify the output and trim out unnecessary information if (initDuration) { msg = `END ${duration} (init:${initDuration}) ${maxMemoryUsed}`; @@ -32,22 +32,22 @@ module.exports = (msgParam) => { return style.error(msg); } - const splitted = msg.split('\t'); + const parts = msg.split('\t'); - if (splitted.length < 3) { + if (parts.length < 3) { return msg; } let date; let reqId; let level = ''; - if (!isNaN(new Date(splitted[0]).getTime())) { - date = splitted[0]; - reqId = splitted[1]; - } else if (!isNaN(new Date(splitted[1]).getTime())) { - date = splitted[1]; - reqId = splitted[2]; - level = `${splitted[0]}\t`; + if (!isNaN(new Date(parts[0]).getTime())) { + date = parts[0]; + reqId = parts[1]; + } else if (!isNaN(new Date(parts[1]).getTime())) { + date = parts[1]; + reqId = parts[2]; + level = `${parts[0]}\t`; } else { return msg; } diff --git a/lib/serverless.js b/lib/serverless.js index 4f3d5b9628..07b09b2331 100644 --- a/lib/serverless.js +++ b/lib/serverless.js @@ -179,7 +179,7 @@ class Serverless { // make sure the command exists before doing anything else this.pluginManager.validateCommand(this.processedInput.commands); - // Some plugins acccess `options` through `this.variables` + // Some plugins access `options` through `this.variables` this.variables.options = this.pluginManager.cliOptions; if (this.processedInput.commands[0] !== 'plugin') { diff --git a/lib/utils/download-template-from-repo.js b/lib/utils/download-template-from-repo.js index df945f8eb9..562cc27e37 100644 --- a/lib/utils/download-template-from-repo.js +++ b/lib/utils/download-template-from-repo.js @@ -332,7 +332,7 @@ async function parseRepoURL(inputUrl) { } const msg = - 'The URL you passed is not one of the valid providers: "GitHub", "GitHub Entreprise", "Bitbucket", "Bitbucket Server" or "GitLab".'; + 'The URL you passed is not one of the valid providers: "GitHub", "GitHub Enterprise", "Bitbucket", "Bitbucket Server" or "GitLab".'; const err = new ServerlessError(msg, 'INVALID_TEMPLATE_PROVIDER'); // test if it's a private bitbucket server return retrieveBitbucketServerInfo(url) diff --git a/lib/utils/serverless-utils/log.js b/lib/utils/serverless-utils/log.js index 434f198066..b17be850aa 100644 --- a/lib/utils/serverless-utils/log.js +++ b/lib/utils/serverless-utils/log.js @@ -50,7 +50,7 @@ module.exports.writeText = getOutputReporter('serverless').get('text'); module.exports.progress = getProgressReporter('serverless'); // Method intended to clear and close indefinitely any progress writing -// Overriden with intended logic in reporter +// Overridden with intended logic in reporter module.exports.progress.clear = () => {}; module.exports.getPluginWriters = memoizee( diff --git a/test/README.md b/test/README.md index 0d22ccd998..d61da0641e 100644 --- a/test/README.md +++ b/test/README.md @@ -1,7 +1,7 @@ # How to run, organize and write tests? As framework deals with significant technical debt baggage many of currently configured tests do not -resemble practise we want to follow in newly introduced tests. +resemble practice we want to follow in newly introduced tests. Please follow this document as the only guideline, it also provides links to tests that serve as a good example to replicate @@ -13,7 +13,7 @@ Tests are configured with [Mocha](https://mochajs.org/) test framework, and can npm test ``` -All new tests should be configured with help of [runServerless](./utils/run-serverless.js) util - it's the only way to test functionality against completely intialized `serverless` instance, and it's the only scenario that reflects real world usage. +All new tests should be configured with help of [runServerless](./utils/run-serverless.js) util - it's the only way to test functionality against completely initialized `serverless` instance, and it's the only scenario that reflects real world usage. The `runServerless` util (inlined from @serverless/test) is configured at `./utils/run-serverless.js` and supports two additional options (`fixture` and `configExt`), which provides out of a box setup to run _Serverless_ instance against prepared fixture with eventually extended service configuration @@ -24,7 +24,7 @@ When creating a new test, it is an established practice to name the top-level de ### Existing test examples: - [Run against config passed inline](https://github.com/serverless/serverless/blob/73107822945a878abbdebe2309e8e9d87cc2858a/lib/plugins/aws/package/lib/generateCoreTemplate.test.js#L11-L14) -- [Run against preprepared fixture](https://github.com/serverless/serverless/blob/74634c3317a116077a008375e20d6a5b99b1256e/lib/plugins/aws/package/compile/functions/index.test.js#L2605-L2608) +- [Run against pre-prepared fixture](https://github.com/serverless/serverless/blob/74634c3317a116077a008375e20d6a5b99b1256e/lib/plugins/aws/package/compile/functions/index.test.js#L2605-L2608) - Fixtures can be [extended](https://github.com/serverless/serverless/blob/74634c3317a116077a008375e20d6a5b99b1256e/lib/plugins/aws/package/compile/events/httpApi/index.test.js#L95-L99) on spot. Whenever possible it's better to extend existing fixture (e.g. basic `function`) instead of creating new one (check [ALB health check tests](https://github.com/serverless/serverless/blob/80e70e7affd54418361c4d54bdef1561af6b8826/lib/plugins/aws/package/compile/events/alb/lib/healthCheck.test.js) for good example on such approach) - If needed introduce new test fixtures at [test/fixtures](./fixtures) @@ -64,7 +64,7 @@ AWS_ACCESS_KEY_ID=XXX AWS_SECRET_ACCESS_KEY=xxx npx mocha test/integration/{chos Due to the fact that some of the tests require a bit more complex infrastructure setup which might be lengthy, two additional commands has been made available: -- `integration-test-setup` - used for setting up all needed intrastructure dependencies +- `integration-test-setup` - used for setting up all needed infrastructure dependencies - `integration-test-teardown` - used for tearing down the infrastructure setup by the above command Such tests take advantage of `isDependencyStackAvailable` util to check if all needed dependencies are ready. If not, it skips the given test suite. diff --git a/test/fixtures/programmatic/iot-fleet-provisioning/register-device.js b/test/fixtures/programmatic/iot-fleet-provisioning/register-device.js index 7063aa5b94..27cab78006 100644 --- a/test/fixtures/programmatic/iot-fleet-provisioning/register-device.js +++ b/test/fixtures/programmatic/iot-fleet-provisioning/register-device.js @@ -13,8 +13,8 @@ const createDeferred = () => { return { promise, resolve, reject }; }; -const subscribe = (fn, deffered, options) => { - const { resolve, reject } = deffered; +const subscribe = (fn, deferred, options) => { + const { resolve, reject } = deferred; const { channelName, isRejectionChannel } = Object.assign( { channelName: 'DefaultChannel', @@ -42,14 +42,14 @@ const executeKeys = async (identity) => { const keysSubRequest = {}; - const createKeysAndCertificateDefferedMessage = createDeferred(); + const createKeysAndCertificateDeferredMessage = createDeferred(); const createKeysAndCertificateAcceptedChannelSubscription = subscribe( identity.subscribeToCreateKeysAndCertificateAccepted.bind( identity, keysSubRequest, mqtt.QoS.AtLeastOnce ), - createKeysAndCertificateDefferedMessage, + createKeysAndCertificateDeferredMessage, { channelName: 'CreateKeysAndCertificateAcceptedChannel', isRejectionChannel: false } ); const createKeysAndCertificateRejectedChannelSubscription = subscribe( @@ -58,7 +58,7 @@ const executeKeys = async (identity) => { keysSubRequest, mqtt.QoS.AtLeastOnce ), - createKeysAndCertificateDefferedMessage, + createKeysAndCertificateDeferredMessage, { channelName: 'CreateKeysAndCertificateRejectedChannel', isRejectionChannel: true } ); @@ -76,21 +76,21 @@ const executeKeys = async (identity) => { await identity.publishCreateKeysAndCertificate(keysRequest, mqtt.QoS.AtLeastOnce); - return createKeysAndCertificateDefferedMessage.promise; + return createKeysAndCertificateDeferredMessage.promise; }; const executeRegisterThing = async (identity, token) => { console.log('Subscribing to RegisterThing Accepted and Rejected topics..'); const registerThingSubRequest = { templateName: process.env.TEMPLATE_NAME }; - const registerThingDefferedMessage = createDeferred(); + const registerThingDeferredMessage = createDeferred(); const registerThingAcceptedChannelSubscription = subscribe( identity.subscribeToRegisterThingAccepted.bind( identity, registerThingSubRequest, mqtt.QoS.AtLeastOnce ), - registerThingDefferedMessage, + registerThingDeferredMessage, { channelName: 'RegisterThingAcceptedChannel', isRejectionChannel: false } ); const registerThingRejectedChannelSubscription = subscribe( @@ -99,7 +99,7 @@ const executeRegisterThing = async (identity, token) => { registerThingSubRequest, mqtt.QoS.AtLeastOnce ), - registerThingDefferedMessage, + registerThingDeferredMessage, { channelName: 'RegisterThingRejectedChannel', isRejectionChannel: true } ); @@ -117,7 +117,7 @@ const executeRegisterThing = async (identity, token) => { }; await identity.publishRegisterThing(registerThing, mqtt.QoS.AtLeastOnce); - return registerThingDefferedMessage.promise; + return registerThingDeferredMessage.promise; }; module.exports.main = async ({ iotEndpoint, certificatePem, privateKey }) => { diff --git a/test/integration-basic.test.js b/test/integration-basic.test.js index 66e18f9141..c2a12c7d3c 100644 --- a/test/integration-basic.test.js +++ b/test/integration-basic.test.js @@ -14,7 +14,7 @@ const { ensureDirSync, getTmpDirPath } = require('./utils/fs'); const serverlessExec = require('./serverless-binary'); -describe('Service Lifecyle Integration Test', function () { +describe('Service Lifecycle Integration Test', function () { this.timeout(1000 * 60 * 10); // Involves time-taking deploys const tmpDir = getTmpDirPath(); const templatePath = path.resolve(__dirname, 'fixtures/programmatic/basic-lifecycle-nodejs24'); diff --git a/test/integration/aws/api-gateway.test.js b/test/integration/aws/api-gateway.test.js index 4f2f1755bf..77770f39b3 100644 --- a/test/integration/aws/api-gateway.test.js +++ b/test/integration/aws/api-gateway.test.js @@ -208,7 +208,7 @@ describe('AWS - API Gateway Integration Test', function () { }); it('should update the stage without service interruptions', async () => { - // re-using the endpoint from the "minimal" test case + // reusing the endpoint from the "minimal" test case const testEndpoint = `${endpoint}`; return confirmCloudWatchLogs( diff --git a/test/integration/aws/infra-dependent/msk.test.js b/test/integration/aws/infra-dependent/msk.test.js index 4a691e86c5..74cb602c14 100644 --- a/test/integration/aws/infra-dependent/msk.test.js +++ b/test/integration/aws/infra-dependent/msk.test.js @@ -31,7 +31,7 @@ describe('AWS - MSK Integration Test', function () { const outputMap = await getDependencyStackOutputMap(); - log.notice('Getting MSK Boostrap Brokers URLs...'); + log.notice('Getting MSK Bootstrap Brokers URLs...'); const getBootstrapBrokersResponse = await awsRequest(KafkaService, 'getBootstrapBrokers', { ClusterArn: outputMap.get('MSKCluster'), }); diff --git a/test/lib/lib/private/rm-tmp-dir-ignorable-error-codes.js b/test/lib/lib/private/rm-tmp-dir-ignorable-error-codes.js index 1fbcf35a5d..b17a2d189b 100644 --- a/test/lib/lib/private/rm-tmp-dir-ignorable-error-codes.js +++ b/test/lib/lib/private/rm-tmp-dir-ignorable-error-codes.js @@ -1,6 +1,6 @@ 'use strict'; -// Removal temporary directory reported occassional crashes on Winodws (in CI) +// Removal temporary directory reported occasional crashes on Windows (in CI) // It's just a cleanup operation, so failure is safe to ignore // Exported set, lists all error codes we recognize as safe to ignore module.exports = new Set(['EBUSY', 'EPERM']); diff --git a/test/lib/run-serverless.js b/test/lib/run-serverless.js index a6cab2f435..8d46b90bc1 100644 --- a/test/lib/run-serverless.js +++ b/test/lib/run-serverless.js @@ -197,7 +197,7 @@ module.exports = async ( ); if (hooks.before) await hooks.before(Serverless, { cwd: confirmedCwd }); - // Intialize serverless instances in preconfigured environment + // Initialize serverless instances in preconfigured environment const configurationPath = await resolveConfigurationPath(); const configuration = configurationPath ? await readConfiguration(configurationPath) diff --git a/test/unit/lib/classes/config-schema-handler/normalize-ajv-errors.test.js b/test/unit/lib/classes/config-schema-handler/normalize-ajv-errors.test.js index ebcbfc0a90..985613b140 100644 --- a/test/unit/lib/classes/config-schema-handler/normalize-ajv-errors.test.js +++ b/test/unit/lib/classes/config-schema-handler/normalize-ajv-errors.test.js @@ -367,7 +367,7 @@ describe('#normalizeAjvErrors', () => { }) ).to.be.true ); - it('should report the duplicated erorr message if more than one dependency is missing only once', () => { + it('should report the duplicated error message if more than one dependency is missing only once', () => { const depsErrors = errors.filter((item) => item.keyword === 'dependencies'); expect(depsErrors).to.have.lengthOf(1); depsErrors[0].isExpected = true; diff --git a/test/unit/lib/classes/plugin-manager.test.js b/test/unit/lib/classes/plugin-manager.test.js index 75102e11ef..0ff4aee3d2 100644 --- a/test/unit/lib/classes/plugin-manager.test.js +++ b/test/unit/lib/classes/plugin-manager.test.js @@ -252,7 +252,7 @@ describe('PluginManager', () => { type: 'entrypoint', lifecycleEvents: ['initialize', 'finalize'], commands: { - // EP, not public command because its parent is decalred as EP + // EP, not public command because its parent is declared as EP mysubep: { lifecycleEvents: ['initialize', 'finalize'], }, @@ -560,7 +560,7 @@ describe('PluginManager', () => { expect(pluginManager.plugins[0]).to.be.an.instanceOf(Plugin); }); - it('should add service related plugins when provider propery is provider plugin', () => { + it('should add service related plugins when provider property is provider plugin', () => { pluginManager.serverless.service.provider.name = 'someProvider'; class ProviderPlugin { static getProviderName() { @@ -842,7 +842,7 @@ describe('PluginManager', () => { const synchronousPluginMockInstance = new SynchronousPluginMock(); pluginManager.loadCommands(synchronousPluginMockInstance); expect(() => pluginManager.createCommandAlias('deploy', 'mycmd')).to.throw( - /Command "deploy" cannot be overriden/ + /Command "deploy" cannot be overridden/ ); }); @@ -850,7 +850,7 @@ describe('PluginManager', () => { const synchronousPluginMockInstance = new SynchronousPluginMock(); synchronousPluginMockInstance.commands.deploy.commands.onpremises.aliases = ['deploy']; expect(() => pluginManager.loadCommands(synchronousPluginMockInstance)).to.throw( - /Command "deploy" cannot be overriden/ + /Command "deploy" cannot be overridden/ ); }); }); diff --git a/test/unit/lib/cli/parse-args.test.js b/test/unit/lib/cli/parse-args.test.js index a474cc5509..6ac88f73bb 100644 --- a/test/unit/lib/cli/parse-args.test.js +++ b/test/unit/lib/cli/parse-args.test.js @@ -106,7 +106,7 @@ describe('test/unit/lib/cli/parse-args.test.js', () => { delete parsedArgs['other-boolean']; }); - it('should recognize mutliple aliases shortcut', async () => { + it('should recognize multiple aliases shortcut', async () => { expect(parsedArgs.b).to.equal(true); expect(parsedArgs.c).to.equal(true); delete parsedArgs.b; @@ -144,7 +144,7 @@ describe('test/unit/lib/cli/parse-args.test.js', () => { parseArgs(['--boolean=value', '-h'], { boolean: new Set(['boolean']) }); }); - it('should reject value for mutliple boolean properties alias', () => + it('should reject value for multiple boolean properties alias', () => expect(() => parseArgs(['-ab=foo'], {})) .to.throw(ServerlessError) .with.property('code', 'UNEXPECTED_CLI_PARAM_VALUE')); diff --git a/test/unit/lib/configuration/read.test.js b/test/unit/lib/configuration/read.test.js index 66e3ed1acd..8c72450a74 100644 --- a/test/unit/lib/configuration/read.test.js +++ b/test/unit/lib/configuration/read.test.js @@ -220,7 +220,7 @@ describe('test/unit/lib/configuration/read.test.js', () => { ); }); - it('should reject JS intialization error', async () => { + it('should reject JS initialization error', async () => { configurationPath = 'serverless-errored.js'; await fsp.writeFile(configurationPath, 'throw new Error("Stop!")'); await expect(readConfiguration(configurationPath)).to.eventually.be.rejected.and.have.property( diff --git a/test/unit/lib/configuration/variables/parse.test.js b/test/unit/lib/configuration/variables/parse.test.js index 0cdd8ceb80..c5dbac6422 100644 --- a/test/unit/lib/configuration/variables/parse.test.js +++ b/test/unit/lib/configuration/variables/parse.test.js @@ -184,7 +184,7 @@ describe('test/unit/lib/configuration/variables/parse.test.js', () => { ])); // ${type(param), true} - it('should support bolean "true" as a fallback source', () => + it('should support boolean "true" as a fallback source', () => expect(parse('${type(param), true}')).to.deep.equal([ { sources: [{ type: 'type', params: [{ value: 'param' }] }, { value: true }], @@ -192,7 +192,7 @@ describe('test/unit/lib/configuration/variables/parse.test.js', () => { ])); // ${type(param), false } - it('should support bolean "false" as a fallback source', () => + it('should support boolean "false" as a fallback source', () => expect(parse('${type(param), false }')).to.deep.equal([ { sources: [{ type: 'type', params: [{ value: 'param' }] }, { value: false }], diff --git a/test/unit/lib/configuration/variables/sources/file.test.js b/test/unit/lib/configuration/variables/sources/file.test.js index 4c7b19f932..439f9a3d3a 100644 --- a/test/unit/lib/configuration/variables/sources/file.test.js +++ b/test/unit/lib/configuration/variables/sources/file.test.js @@ -130,7 +130,7 @@ describe('test/unit/lib/configuration/variables/sources/file.test.js', () => { expect(configuration.inheritedConstructorAddress).to.equal(null); }); - it('should uncoditionally split "address" property keys by "."', () => + it('should unconditionally split "address" property keys by "."', () => expect(configuration.ambiguousAddress).to.equal('object')); it('should report with null non existing files', () => @@ -149,15 +149,15 @@ describe('test/unit/lib/configuration/variables/sources/file.test.js', () => { it('should resolve plain text content on unrecognized extension', () => // .trim() as depending on local .git settings and OS (Windows or other) - // checked out fixture may end with differen type of EOL (\n on linux, and \r\n on Windows) + // checked out fixture may end with different type of EOL (\n on linux, and \r\n on Windows) expect(configuration.nonStandardExt.trim()).to.equal('result: non-standard'.trim())); - it('should mark as unresolved if function crashes with misisng property dependency', () => { + it('should mark as unresolved if function crashes with missing property dependency', () => { const propertyMeta = variablesMeta.get('jsFileFunctionAccessUnresolvableProperty'); if (propertyMeta.error) throw propertyMeta.error; expect(propertyMeta).to.have.property('variables'); }); - it('should mark as unresolved if property function crashes with misisng property dependency', () => { + it('should mark as unresolved if property function crashes with missing property dependency', () => { const propertyMeta = variablesMeta.get('jsFilePropertyFunctionAccessUnresolvableProperty'); if (propertyMeta.error) throw propertyMeta.error; expect(propertyMeta).to.have.property('variables'); diff --git a/test/unit/lib/configuration/variables/sources/self.test.js b/test/unit/lib/configuration/variables/sources/self.test.js index 5eb9017d09..a99f3c419b 100644 --- a/test/unit/lib/configuration/variables/sources/self.test.js +++ b/test/unit/lib/configuration/variables/sources/self.test.js @@ -49,7 +49,7 @@ describe('test/unit/lib/configuration/variables/sources/self.test.js', () => { }); }); - it('should reject cicular reference', async () => { + it('should reject circular reference', async () => { const configuration = { foo: '${self:}' }; const variablesMeta = resolveMeta(configuration); await resolve({ diff --git a/test/unit/lib/plugins/aws/deploy/lib/check-for-changes.test.js b/test/unit/lib/plugins/aws/deploy/lib/check-for-changes.test.js index 0244de8bcc..4ea73f5996 100644 --- a/test/unit/lib/plugins/aws/deploy/lib/check-for-changes.test.js +++ b/test/unit/lib/plugins/aws/deploy/lib/check-for-changes.test.js @@ -822,7 +822,7 @@ describe('test/unit/lib/plugins/aws/deploy/lib/checkForChanges.test.js', () => { awsRequestStubMap: { ...commonAwsSdkMock, // 1. Returns function configuration modification date. - // Must be newer than artificats (in S3 folder) modification dates + // Must be newer than artifacts (in S3 folder) modification dates Lambda: { getFunction: { Configuration: { LastModified: '2021-05-20T15:34:16.494+0000' } }, }, @@ -833,7 +833,7 @@ describe('test/unit/lib/plugins/aws/deploy/lib/checkForChanges.test.js', () => { // - LastModified date needs to be older than modification date of any function configuration listObjectsV2: async () => generateMatchingListObjectsResponse(serverless), // 3. Lists hashes for all S3 buckets - // Should match hashes fo artifacts in package folder + // Should match hashes of artifacts in package folder headObject: async (params) => generateMatchingHeadObjectResponse(serverless, params), }, }, @@ -919,7 +919,7 @@ describe('test/unit/lib/plugins/aws/deploy/lib/checkForChanges.test.js', () => { }, S3: { // TODO: Enrich the result as generated by "generateMatchingListObjectsResponse" to - // additiona list same artifacts (but with different hashes) in older deployment folder + // additional list same artifacts (but with different hashes) in older deployment folder listObjectsV2: async () => generateMatchingListObjectsResponse(serverless), headObject: async (params) => generateMatchingHeadObjectResponse(serverless, params), }, @@ -989,7 +989,7 @@ describe('test/unit/lib/plugins/aws/deploy/lib/checkForChanges.test.js', () => { }, S3: { listObjectsV2: () => listObjectsV2Response, - // TODO: Ensure hash for no longer existing artificat + // TODO: Ensure hash for no longer existing artifact headObject: async (params) => generateMatchingHeadObjectResponse(serverless, params), }, }, diff --git a/test/unit/lib/plugins/aws/package/compile/events/api-gateway/lib/method/index.test.js b/test/unit/lib/plugins/aws/package/compile/events/api-gateway/lib/method/index.test.js index e9644b531b..2e0e13d727 100644 --- a/test/unit/lib/plugins/aws/package/compile/events/api-gateway/lib/method/index.test.js +++ b/test/unit/lib/plugins/aws/package/compile/events/api-gateway/lib/method/index.test.js @@ -1902,7 +1902,7 @@ describe('#compileMethods()', () => { describe('#compileMethods v2()', () => { describe('request configuration', () => { - it('should delete the default "application/x-www-form-urlencoded" template if it\'s overriden with null', async () => { + it('should delete the default "application/x-www-form-urlencoded" template if it\'s overridden with null', async () => { const { awsNaming, cfTemplate: { Resources: cfResources }, diff --git a/test/unit/lib/plugins/aws/package/compile/events/api-gateway/lib/validate.test.js b/test/unit/lib/plugins/aws/package/compile/events/api-gateway/lib/validate.test.js index 04f74e83ef..9bd8080368 100644 --- a/test/unit/lib/plugins/aws/package/compile/events/api-gateway/lib/validate.test.js +++ b/test/unit/lib/plugins/aws/package/compile/events/api-gateway/lib/validate.test.js @@ -624,7 +624,7 @@ describe('#validate()', () => { }); }); - it('should handle expicit methods', () => { + it('should handle explicit methods', () => { awsCompileApigEvents.serverless.service.functions = { first: { events: [ diff --git a/test/unit/lib/plugins/aws/package/compile/events/event-bridge/index.test.js b/test/unit/lib/plugins/aws/package/compile/events/event-bridge/index.test.js index bbed98373c..2570e6d2dc 100644 --- a/test/unit/lib/plugins/aws/package/compile/events/event-bridge/index.test.js +++ b/test/unit/lib/plugins/aws/package/compile/events/event-bridge/index.test.js @@ -243,12 +243,12 @@ describe('EventBridgeEvents', () => { expect(eventBridgeConfig.State).to.be.eq('ENABLED'); }); - it('should ensure state is enabled when explicity set', () => { + it('should ensure state is enabled when explicitly set', () => { const eventBridgeConfig = getEventBridgeConfigById('enabled'); expect(eventBridgeConfig.State).to.be.eq('ENABLED'); }); - it('should ensure state is disabled when explicity set', () => { + it('should ensure state is disabled when explicitly set', () => { const eventBridgeConfig = getEventBridgeConfigById('disabled'); expect(eventBridgeConfig.State).to.be.eq('DISABLED'); }); diff --git a/test/unit/lib/plugins/aws/package/compile/events/msk/index.test.js b/test/unit/lib/plugins/aws/package/compile/events/msk/index.test.js index 254e85d211..8357d78062 100644 --- a/test/unit/lib/plugins/aws/package/compile/events/msk/index.test.js +++ b/test/unit/lib/plugins/aws/package/compile/events/msk/index.test.js @@ -119,7 +119,7 @@ describe('AwsCompileMSKEvents', () => { expect(allParamsEventSourceMappingResource.DependsOn).to.include('IamRoleLambdaExecution'); }); - it('should correctly complie EventSourceMapping resource with all parameters', () => { + it('should correctly compile EventSourceMapping resource with all parameters', () => { expect(allParamsEventSourceMappingResource.Properties).to.deep.equal({ BatchSize: batchSize, MaximumBatchingWindowInSeconds: maximumBatchingWindow, diff --git a/test/unit/lib/plugins/aws/package/compile/events/sns.test.js b/test/unit/lib/plugins/aws/package/compile/events/sns.test.js index 9993f3c306..76ae497b13 100644 --- a/test/unit/lib/plugins/aws/package/compile/events/sns.test.js +++ b/test/unit/lib/plugins/aws/package/compile/events/sns.test.js @@ -417,7 +417,7 @@ describe('AwsCompileSNSEvents', () => { ).to.equal('AWS::Lambda::Permission'); }); - it('should create two SNS topic subsriptions for ARNs with the same topic name in two regions when different topicName parameters are specified', () => { + it('should create two SNS topic subscriptions for ARNs with the same topic name in two regions when different topicName parameters are specified', () => { awsCompileSNSEvents.serverless.service.functions = { first: { events: [ @@ -454,7 +454,7 @@ describe('AwsCompileSNSEvents', () => { ).to.equal('AWS::SNS::Subscription'); }); - it('should override SNS topic subsription CF resource name when arn and topicName are given as object properties', () => { + it('should override SNS topic subscription CF resource name when arn and topicName are given as object properties', () => { awsCompileSNSEvents.serverless.service.functions = { first: { events: [ diff --git a/test/unit/lib/plugins/aws/package/compile/events/sqs.test.js b/test/unit/lib/plugins/aws/package/compile/events/sqs.test.js index 110837d5b4..2086dc9a49 100644 --- a/test/unit/lib/plugins/aws/package/compile/events/sqs.test.js +++ b/test/unit/lib/plugins/aws/package/compile/events/sqs.test.js @@ -89,7 +89,7 @@ describe('test/unit/lib/plugins/aws/package/compile/events/sqs.test.js', () => { iamRoleLambdaExecution = cfTemplate.Resources.IamRoleLambdaExecution; }); - it('should suport direct ARN string', () => { + it('should support direct ARN string', () => { const directSqsArn = 'arn:aws:sqs:region:account:MyQueue'; expect(directArnEventSourceMappingResource.Properties.EventSourceArn).to.equal(directSqsArn); }); @@ -99,21 +99,21 @@ describe('test/unit/lib/plugins/aws/package/compile/events/sqs.test.js', () => { expect(basicEventSourceMappingResource.Properties.EventSourceArn).to.equal(basicSqsArn); }); - it('should suport `arn` (CF Fn::GetAtt)', () => { + it('should support `arn` (CF Fn::GetAtt)', () => { const getAttSqsArn = { 'Fn::GetAtt': ['SomeQueue', 'Arn'] }; expect( arnCfGetAttEventSourceMappingResource.Properties.EventSourceArn['Fn::GetAtt'] ).to.deep.equal(getAttSqsArn['Fn::GetAtt']); }); - it('should suport `arn` (CF Fn::ImportValue)', () => { + it('should support `arn` (CF Fn::ImportValue)', () => { const cfImportArn = { 'Fn::ImportValue': 'ForeignQueue' }; expect( arnCfImportEventSourceMappingResource.Properties.EventSourceArn['Fn::ImportValue'] ).to.deep.equal(cfImportArn['Fn::ImportValue']); }); - it('should suport `arn` (CF Fn::Join)', () => { + it('should support `arn` (CF Fn::Join)', () => { const cfJoinArn = { 'Fn::Join': [ ':', @@ -136,12 +136,12 @@ describe('test/unit/lib/plugins/aws/package/compile/events/sqs.test.js', () => { ).to.deep.equal(cfJoinArn['Fn::Join']); }); - it('should suport `batchSize`', () => { + it('should support `batchSize`', () => { const requestedBatchSize = 10; expect(basicEventSourceMappingResource.Properties.BatchSize).to.equal(requestedBatchSize); }); - it('should suport `functionResponseType`', () => { + it('should support `functionResponseType`', () => { const requestedFunctionResponseType = 'ReportBatchItemFailures'; expect(basicEventSourceMappingResource.Properties.FunctionResponseTypes).to.include.members([ requestedFunctionResponseType, diff --git a/test/unit/lib/plugins/aws/remove/index.test.js b/test/unit/lib/plugins/aws/remove/index.test.js index 5423f140d0..10903c8e33 100644 --- a/test/unit/lib/plugins/aws/remove/index.test.js +++ b/test/unit/lib/plugins/aws/remove/index.test.js @@ -565,7 +565,7 @@ describe('test/unit/lib/plugins/aws/remove/index.test.js', () => { ).to.be.eventually.rejected.and.have.property('code', 'AWS_S3_LIST_OBJECTS_V2_ACCESS_DENIED'); }); - it('should throw an error when deleteObjects operation was not successfull', async () => { + it('should throw an error when deleteObjects operation was not successful', async () => { const innerDeleteObjectsStub = sinon.stub().resolves({ Deleted: [], Errors: [ @@ -615,7 +615,7 @@ describe('test/unit/lib/plugins/aws/remove/index.test.js', () => { } }); - it('should throw an error when deleteObjects operation was not successfull due to "AccessDenied"', async () => { + it('should throw an error when deleteObjects operation was not successful due to "AccessDenied"', async () => { const innerDeleteObjectsStub = sinon.stub().resolves({ Deleted: [], Errors: [ diff --git a/test/unit/lib/utils/download-template-from-repo.test.js b/test/unit/lib/utils/download-template-from-repo.test.js index 971d479d7b..6c4f7fd996 100644 --- a/test/unit/lib/utils/download-template-from-repo.test.js +++ b/test/unit/lib/utils/download-template-from-repo.test.js @@ -546,7 +546,7 @@ describe('downloadTemplateFromRepo', () => { } }); - it('should parse a valid GitHub Entreprise URL', async () => { + it('should parse a valid GitHub Enterprise URL', async () => { return expect( parseRepoURL('https://github.mydomain.com/serverless/serverless') ).to.be.fulfilled.then((output) => { @@ -563,7 +563,7 @@ describe('downloadTemplateFromRepo', () => { }); }); - it('should parse a valid GitHub Entreprise with subdirectory', async () => { + it('should parse a valid GitHub Enterprise with subdirectory', async () => { return expect( parseRepoURL('https://github.mydomain.com/serverless/serverless/tree/master/assets') ).to.be.fulfilled.then((output) => { @@ -586,7 +586,7 @@ describe('downloadTemplateFromRepo', () => { ).to.be.eventually.rejected.and.have.property('code', 'INVALID_TEMPLATE_URL'); }); - it('should parse a valid GitHub Entreprise URL with authentication', async () => { + it('should parse a valid GitHub Enterprise URL with authentication', async () => { return expect( parseRepoURL('https://username:password@github.com/serverless/serverless/') ).to.be.fulfilled.then((output) => { diff --git a/test/unit/lib/utils/yaml-ast-parser.test.js b/test/unit/lib/utils/yaml-ast-parser.test.js index fb947a5d47..7ef593f85d 100644 --- a/test/unit/lib/utils/yaml-ast-parser.test.js +++ b/test/unit/lib/utils/yaml-ast-parser.test.js @@ -319,7 +319,7 @@ describe('#yamlAstParser', () => { it('should do nothing when you can not find the object which you specify', () => { const yamlContent = { - serveice: 'test-service', + service: 'test-service', toplevel: ['foo', 'bar'], };