1
0
Fork 0
* spelling: absolute

* spelling: content

* spelling: received

* spelling: sanitizes
pull/432/head
Josh Soref 2020-04-27 09:13:56 -04:00 committed by GitHub
parent df7e2c13c8
commit 7257597d73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -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 {

View File

@ -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 {

View File

@ -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')

View File

@ -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