Skip to content

Commit

Permalink
Add missing test for NanNew<FunctionTemplate>()
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoopa committed Jan 21, 2015
1 parent 49259af commit a6b07ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/cpp/nannew.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,9 @@ NAN_METHOD(testFunctionTemplate) {
NanScope();
NanTap t(args[0]);

t.plan(3);
t.plan(4);

t.ok(_( assertType<FunctionTemplate>( NanNew<FunctionTemplate>())));
t.ok(_( assertType<FunctionTemplate>(
NanNew<FunctionTemplate>(testFunctionTemplate))));
v8::Local<String> data = NanNew("plonk");
Expand Down

0 comments on commit a6b07ca

Please sign in to comment.