text: #include "events.h"
  #include "tests.h"
  
  static const char *test_name = "test-event-2";
  
  static struct event_t *make_event(napi_env env) {
  	napi_value object;
  	napi_create_object(env, &object);
  	napi_ref ref;
  	napi_create_reference(env, object, 0, &ref);
  	struct event_t *event = create_event(env, ref, test_name);
  	return event;
  }
  
  static void clear_event_set_reference_0(napi_env env) {
  	struct event_t *event = make_event(env);
  	uint32_t ref_count = 0;
  	napi_reference_unref(env, event->cb_ref, &ref_count);
  	assert(ref_count == 0);
  }
  
  void clear_event_suite(napi_env env) {
  	SUITE();
  	RUN_TEST(clear_event_set_reference_0);
  }
  