This commit is contained in:
2026-01-23 15:06:54 -06:00
parent 39fb28d8bc
commit d3829b4f51

View File

@@ -10,15 +10,15 @@ def TEST_APP_ID = "1446585686789586975"
return { return {
// Test that the module loads correctly // Test that the module loads correctly
test_module_loads: function() { test_module_loads: function() {
if (typeof discord != 'object') throw "Discord module should be an object" if (!is_object(discord)) throw "Discord module should be an object"
if (typeof discord.init != 'function') throw "discord.init should be a function" if (!is_function(discord.init)) throw "discord.init should be a function"
if (typeof discord.run_callbacks != 'function') throw "discord.run_callbacks should be a function" if (!is_function(discord.run_callbacks)) throw "discord.run_callbacks should be a function"
if (typeof discord.shutdown != 'function') throw "discord.shutdown should be a function" if (!is_function(discord.shutdown)) throw "discord.shutdown should be a function"
}, },
// Test initialization // Test initialization
test_init: function() { test_init: function() {
var result = discord.init(TEST_APP_ID) var result = discord.init(TEST_APP_ID)
if (!result) throw "discord.init should return true on success" if (!result) throw "discord.init should return true on success"
}, },