Skip to content

Commit 3807c68

Browse files
Matheus MarchiniMylesBorins
Matheus Marchini
authored andcommitted
doc: fix doc example for cctest
cctest guide example wasn't working because of a few typos. PR-URL: #17355 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Alexey Orlenko <[email protected]>
1 parent 9b27bc8 commit 3807c68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/guides/writing-tests.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,8 @@ TEST_F(EnvTest, RunAtExit) {
312312
v8::Local<v8::Context> context = v8::Context::New(isolate_);
313313
node::IsolateData* isolateData = node::CreateIsolateData(isolate_, uv_default_loop());
314314
Argv argv{"node", "-e", ";"};
315-
auto env = Environment:CreateEnvironment(isolateData, context, 1, *argv, 2, *argv);
316-
node::AtExit(at_exit_callback);
315+
auto env = node::CreateEnvironment(isolateData, context, 1, *argv, 2, *argv);
316+
node::AtExit(env, at_exit_callback);
317317
node::RunAtExit(env);
318318
EXPECT_TRUE(called_cb);
319319
}

0 commit comments

Comments
 (0)