Skip to content

Commit 900ff09

Browse files
committed
fix example for single task
1 parent 9bcb76b commit 900ff09

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/cli-kit/bin/documentation/examples.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,10 +593,11 @@ export const examples: {[key in string]: Example} = {
593593

594594
await renderSingleTask({
595595
title: 'Loading app',
596-
taskPromise: async () => {
596+
task: async () => {
597597
await sleep(1)
598598
},
599-
}, {renderOptions: {stdout: stdout as any, debug: true}})
599+
renderOptions: {stdout: stdout as any, debug: true}
600+
})
600601

601602
// Find the last frame that includes mention of "Loading"
602603
const loadingFrame = stdout.frames.findLast(frame => frame.includes('Loading'))

0 commit comments

Comments
 (0)