Skip to content

Commit 4bb9e53

Browse files
author
Matheus Marchini
committed
doc: fix doc example for cctest
cctest guide example wasn't working because of a few typos.
1 parent 4ca4db0 commit 4bb9e53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/guides/writing-tests.md

Lines changed: 2 additions & 2 deletions
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)