diff --git a/README.md b/README.md index 09d387d..7bb225d 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ The plan includes all exports from [`node:assert`](https://nodejs.org/api/assert as well as: * `end()`: a function to complete the plan -* `complete`: a promise that will resolve when the plan is completed. +* `completed`: a promise that will resolve when the plan is completed. ## License diff --git a/tspl.d.ts b/tspl.d.ts index f974560..c0ff56e 100644 --- a/tspl.d.ts +++ b/tspl.d.ts @@ -9,7 +9,7 @@ export interface Options { } export type Plan = Omit & { - complete: Promise + completed: Promise end: () => void } diff --git a/tspl.test-d.ts b/tspl.test-d.ts index b68fa42..681aab0 100644 --- a/tspl.test-d.ts +++ b/tspl.test-d.ts @@ -11,7 +11,7 @@ test('tspl', (t) => { expectType(p.end()); }); -test('complete', async (t) => { +test('completed', async (t) => { expectType(tspl(t, { plan: 1 })); const p: Plan = tspl(t, { plan: 1 }); @@ -19,7 +19,7 @@ test('complete', async (t) => { p.strictEqual(1, 1); }); - await p.complete + await p.completed }); test('tspl', (t) => {