throw MysteryBoxError instead of generic errors
[squeep-mystery-box] / test / lib / errors.js
1 'use strict';
2
3 const assert = require('assert');
4 const { MysteryBoxError } = require('../../lib/errors');
5
6 describe('Errors', function () {
7 it('MysteryBoxError', function () {
8 const e = new MysteryBoxError();
9 assert.strictEqual(e.name, 'MysteryBoxError');
10 });
11 }); // Errors