#include "test_env.h"
#include "upstream_js_test.h"
extern "C" napi_value Init(napi_env env, napi_value exports);
class Test12Error : public FixtureTestBase {};
TEST_F(Test12Error, PortedCoreFlow) {
EnvScope s(runtime_.get());
napi_value exports = nullptr;
ASSERT_EQ(napi_create_object(s.env, &exports), napi_ok);
napi_value addon = Init(s.env, exports);
ASSERT_NE(addon, nullptr);
ASSERT_TRUE(InstallUpstreamJsShim(s, addon));
ASSERT_TRUE(
RunUpstreamJsFile(s, std::string(NAPI_TESTS_ROOT_PATH) + "/js-native-api/test_error/test.js"));
}