generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update and apply formatting rules
- Loading branch information
1 parent
cf4dfbf
commit 569a847
Showing
36 changed files
with
1,027 additions
and
784 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import {exec} from '../src/exec' | ||
import {exec} from '../src/exec'; | ||
|
||
describe('exec', () => { | ||
test('non-silent returns correct output', async () => { | ||
const result = await exec('bash', ['-c', 'echo hi'], {silent: false}) | ||
console.log(result) | ||
expect(result.exitCode).toBe(0) | ||
expect(result.stdout).toStrictEqual('hi\n') | ||
}) | ||
const result = await exec('bash', ['-c', 'echo hi'], {silent: false}); | ||
console.log(result); | ||
expect(result.exitCode).toBe(0); | ||
expect(result.stdout).toStrictEqual('hi\n'); | ||
}); | ||
test('silent returns correct output', async () => { | ||
const result = await exec('bash', ['-c', 'echo hi'], {silent: true}) | ||
console.log(result) | ||
expect(result.exitCode).toBe(0) | ||
expect(result.stdout).toStrictEqual('hi\n') | ||
}) | ||
}) | ||
const result = await exec('bash', ['-c', 'echo hi'], {silent: true}); | ||
console.log(result); | ||
expect(result.exitCode).toBe(0); | ||
expect(result.stdout).toStrictEqual('hi\n'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.