From b93ecfcbf9311c67dde9121a2d4f2c9bc7ddb6bf Mon Sep 17 00:00:00 2001 From: Mirco Sanguineti <19243840+msanguineti@users.noreply.github.com> Date: Fri, 12 Apr 2019 15:25:12 +0300 Subject: [PATCH] revert: revert formatting --- types/shelljs/shelljs-tests.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/types/shelljs/shelljs-tests.ts b/types/shelljs/shelljs-tests.ts index 50ec3c2cc5..b7b7afc5b1 100644 --- a/types/shelljs/shelljs-tests.ts +++ b/types/shelljs/shelljs-tests.ts @@ -89,24 +89,24 @@ const testPath = shell.env["path"]; const version = shell.exec("node --version").stdout; // $ExpectType ShellString -const version2 = shell.exec("node --version", { async: false }); +const version2 = shell.exec("node --version", {async: false}); const output = version2.stdout; // $ExpectType ChildProcess -const asyncVersion3 = shell.exec("node --version", { async: true }); +const asyncVersion3 = shell.exec("node --version", {async: true}); let pid = asyncVersion3.pid; declare let isAsync: boolean; // $ExpectType ShellString | ChildProcess -const unknownUntilRuntime = shell.exec("node --version", { async: isAsync }); +const unknownUntilRuntime = shell.exec("node --version", {async: isAsync}); -shell.exec("node --version", { silent: true }, (code, stdout, stderr) => { +shell.exec("node --version", {silent: true}, (code, stdout, stderr) => { const version = stdout; }); shell.exec( "node --version", - { silent: true, async: true, cwd: "/usr/local/bin" }, + {silent: true, async: true, cwd: "/usr/local/bin"}, (code, stdout, stderr) => { const version = stdout; } @@ -149,18 +149,18 @@ shell.touch("-c", "/Users/brandom/test1"); shell.touch("-c", "/Users/brandom/test1", "/Users/brandom/test2"); shell.touch("-c", ["/Users/brandom/test1", "/Users/brandom/test2"]); -shell.touch({ "-r": "/some/file.txt" }, "/Users/brandom/test1"); +shell.touch({"-r": "/some/file.txt"}, "/Users/brandom/test1"); shell.touch( - { "-r": "/some/file.txt" }, + {"-r": "/some/file.txt"}, "/Users/brandom/test1", "/Users/brandom/test2" ); -shell.touch({ "-r": "/oome/file.txt" }, [ +shell.touch({"-r": "/oome/file.txt"}, [ "/Users/brandom/test1", "/Users/brandom/test2" ]); -shell.head({ "-n": 1 }, "file*.txt"); +shell.head({"-n": 1}, "file*.txt"); shell.head("file1", "file2"); shell.head(["file1", "file2"]); // same as above @@ -169,7 +169,7 @@ shell.sort("-r", "foo.txt"); shell.sort("-r", ["file.txt"]); shell.sort(["file.txt"]); -shell.tail({ "-n": 1 }, "file*.txt"); +shell.tail({"-n": 1}, "file*.txt"); shell.tail("file1", "file2"); shell.tail(["file1", "file2"]); // same as above @@ -195,10 +195,10 @@ shell.config.globOptions = { shell .ls("dir") .grep(/^stuff/) - .head({ "-n": 5 }).stdout; + .head({"-n": 5}).stdout; const foo = new shell.ShellString('hello world'); const farr = new shell.ShellString(['hello', 'world']); -const bar = shell.ShellString('hello world'); +const boo = shell.ShellString('hello world'); const barr = shell.ShellString(['hello', 'world']);