-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
623 additions
and
781 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
118 changes: 118 additions & 0 deletions
118
packages/doctor-general/__snapshots__/comment.spec.js.snap
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 |
---|---|---|
@@ -0,0 +1,118 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`processCurriedComment 1`] = ` | ||
[ | ||
{ | ||
"addTo": "", | ||
"end": 49, | ||
"fileGroup": "", | ||
"keywords": [ | ||
"@curried", | ||
"@example", | ||
"@future", | ||
], | ||
"lines": [ | ||
"/**", | ||
"Consume external commands as a Future-wrapped value.", | ||
"@future", | ||
"@curried", | ||
" 1. execWithConfig - Passes all possible configuration values plus a cancellation function.", | ||
" *", | ||
" @example", | ||
" \`\`\`js", | ||
" import { execWithConfig } from 'kiddo'", | ||
" import { fork } from 'fluture'", | ||
" fork(console.warn)(console.log)(", | ||
" execWithConfig(", | ||
" function customCancellationFunction() {},", | ||
" 'echo',", | ||
" { cleanup: true },", | ||
" ['ahoy']", | ||
" )", | ||
" )", | ||
" \`\`\`", | ||
" *", | ||
" 2. execWithCancel - Eschews any configuration and instead only expects a cancellation function, command and arguments.", | ||
" *", | ||
" @example", | ||
" \`\`\`js", | ||
" import { execWithCancel } from 'kiddo'", | ||
" import { fork } from 'fluture'", | ||
" fork(console.warn)(console.log)(", | ||
" execWithCancel(", | ||
" function customCancellationFunction() {},", | ||
" 'echo',", | ||
" ['ahoy']", | ||
" )", | ||
" )", | ||
" \`\`\`", | ||
" *", | ||
" 3. exec - Eschews any configuration or cancellation function. Needs only command and arguments.", | ||
" *", | ||
" @example", | ||
" \`\`\`js test=true", | ||
" import { fork } from 'fluture'", | ||
" // drgen-import-above", | ||
" const blah = Math.round(Math.random() * 100000)", | ||
" fork(done)(z => {", | ||
" expect(z.stdout).toEqual('' + blah)", | ||
" done()", | ||
" })(exec('echo', [blah]))", | ||
" \`\`\`", | ||
], | ||
"links": [], | ||
"start": 1, | ||
"structure": { | ||
"curried": [ | ||
{ | ||
"lines": "\`\`\`js | ||
import { execWithConfig } from 'kiddo' | ||
import { fork } from 'fluture' | ||
fork(console.warn)(console.log)( | ||
execWithConfig( | ||
function customCancellationFunction() {}, | ||
'echo', | ||
{ cleanup: true }, | ||
['ahoy'] | ||
) | ||
) | ||
\`\`\`", | ||
"name": "execWithConfig", | ||
"summary": "Passes all possible configuration values plus a cancellation function.", | ||
}, | ||
{ | ||
"lines": "\`\`\`js | ||
import { execWithCancel } from 'kiddo' | ||
import { fork } from 'fluture' | ||
fork(console.warn)(console.log)( | ||
execWithCancel( | ||
function customCancellationFunction() {}, | ||
'echo', | ||
['ahoy'] | ||
) | ||
) | ||
\`\`\`", | ||
"name": "execWithCancel", | ||
"summary": "Eschews any configuration and instead only expects a cancellation function, command and arguments.", | ||
}, | ||
{ | ||
"lines": "\`\`\`js test=true | ||
import { fork } from 'fluture' | ||
// drgen-import-above | ||
const blah = Math.round(Math.random() * 100000) | ||
fork(done)(z => { | ||
expect(z.stdout).toEqual('' + blah) | ||
done() | ||
})(exec('echo', [blah])) | ||
\`\`\`", | ||
"name": "exec", | ||
"summary": "Eschews any configuration or cancellation function. Needs only command and arguments.", | ||
}, | ||
], | ||
"description": "Consume external commands as a Future-wrapped value.", | ||
"future": true, | ||
}, | ||
"summary": "Consume external commands as a Future-wrapped value.", | ||
}, | ||
] | ||
`; |
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.