From 429cb3e11d24bf4220dc643667e43998f34a2872 Mon Sep 17 00:00:00 2001 From: needfulthing <2411992+needfulthing@users.noreply.github.com> Date: Wed, 5 Jul 2023 12:40:49 +0200 Subject: [PATCH] Update debugging.mdx Fixed example for now(). --- docs/guides/guides/debugging.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/guides/debugging.mdx b/docs/guides/guides/debugging.mdx index 6c9d2cfd4e..ac69c2cc9c 100644 --- a/docs/guides/guides/debugging.mdx +++ b/docs/guides/guides/debugging.mdx @@ -261,8 +261,8 @@ example, to run the equivalent of `cy.task('database', 123)` outside the normal execution command chain: ```javascript -cy.now('task', 123).then(console.log) -// runs cy.task(123) and prints the resolved value +cy.now('task', 'database', 123).then(console.log) +// runs cy.task('database', 123) and prints the resolved value ``` :::caution