From 7257597d731b34d14090db516d9ea53439300e98 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Mon, 27 Apr 2020 09:13:56 -0400 Subject: [PATCH] Spelling (#431) * spelling: absolute * spelling: content * spelling: received * spelling: sanitizes --- packages/core/src/command.ts | 2 +- packages/glob/src/internal-pattern.ts | 2 +- packages/io/__tests__/io.test.ts | 4 ++-- scripts/test-artifact-file.sh | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/core/src/command.ts b/packages/core/src/command.ts index 57067a1a..acdf9def 100644 --- a/packages/core/src/command.ts +++ b/packages/core/src/command.ts @@ -77,7 +77,7 @@ class Command { } /** - * Sanatizes an input into a string so it can be passed into issueCommand safely + * Sanitizes an input into a string so it can be passed into issueCommand safely * @param input input to sanitize into a string */ export function toCommandValue(input: any): string { diff --git a/packages/glob/src/internal-pattern.ts b/packages/glob/src/internal-pattern.ts index 1e2a992f..72e3dc71 100644 --- a/packages/glob/src/internal-pattern.ts +++ b/packages/glob/src/internal-pattern.ts @@ -134,7 +134,7 @@ export class Pattern { // false for `/foo` but returns true for `/foo/`. Append a trailing slash to handle that quirk. if (!itemPath.endsWith(path.sep)) { // Note, this is safe because the constructor ensures the pattern has an absolute root. - // For example, formats like C: and C:foo on Windows are resolved to an aboslute root. + // For example, formats like C: and C:foo on Windows are resolved to an absolute root. itemPath = `${itemPath}${path.sep}` } } else { diff --git a/packages/io/__tests__/io.test.ts b/packages/io/__tests__/io.test.ts index 80438959..76d07f5b 100644 --- a/packages/io/__tests__/io.test.ts +++ b/packages/io/__tests__/io.test.ts @@ -778,7 +778,7 @@ describe('mkdirP', () => { await io.mkdirP(getTestTemp()) await fs.mkdir(rootPath) await fs.mkdir(realDirPath) - await fs.writeFile(realFilePath, 'test real_dir/file.txt contet') + await fs.writeFile(realFilePath, 'test real_dir/file.txt content') await createSymlinkDir(realDirPath, symlinkDirPath) await io.mkdirP(symlinkDirPath) @@ -802,7 +802,7 @@ describe('mkdirP', () => { await io.mkdirP(getTestTemp()) await fs.mkdir(rootPath) await fs.mkdir(realDirPath) - await fs.writeFile(realFilePath, 'test real_dir/file.txt contet') + await fs.writeFile(realFilePath, 'test real_dir/file.txt content') await createSymlinkDir(realDirPath, symlinkDirPath) const subDirPath = path.join(symlinkDirPath, 'sub_dir') diff --git a/scripts/test-artifact-file.sh b/scripts/test-artifact-file.sh index 8b90c1ad..708dc807 100755 --- a/scripts/test-artifact-file.sh +++ b/scripts/test-artifact-file.sh @@ -20,6 +20,6 @@ fi actualContent=$(cat $path) if [ "$actualContent" != "$expectedContent" ];then - echo "File contents are not correct, expected $expectedContent, recieved $actualContent" + echo "File contents are not correct, expected $expectedContent, received $actualContent" exit 1 fi \ No newline at end of file