Skip to content

Commit

Permalink
improve node-addonc-api test
Browse files Browse the repository at this point in the history
  • Loading branch information
enzalito committed Jul 12, 2024
1 parent 45bce35 commit d4d857a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/n/node-addon-api/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ package("node-addon-api")
end)

on_test(function (package)
assert(os.isfile(path.join(package:installdir("include"), "napi.h")))
assert(package:has_cfuncs("Napi::Just(0)", {includes = "napi.h"}))
end)

0 comments on commit d4d857a

Please sign in to comment.