throw MysteryBoxError instead of generic errors
[squeep-mystery-box] / test / lib / errors.js
diff --git a/test/lib/errors.js b/test/lib/errors.js
new file mode 100644 (file)
index 0000000..0a31620
--- /dev/null
@@ -0,0 +1,11 @@
+'use strict';
+
+const assert = require('assert');
+const { MysteryBoxError } = require('../../lib/errors');
+
+describe('Errors', function () {
+  it('MysteryBoxError', function () {
+    const e = new MysteryBoxError();
+    assert.strictEqual(e.name, 'MysteryBoxError');
+  });
+}); // Errors
\ No newline at end of file