mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-28 16:15:49 +00:00
committed by
Mayukha Vadari
parent
8c5bc22317
commit
e200de3073
@@ -1,18 +1,18 @@
|
||||
import { assert } from "chai";
|
||||
import { assert } from 'chai'
|
||||
|
||||
import setupClient from "../setupClient";
|
||||
import setupClient from '../setupClient'
|
||||
|
||||
describe("client errors", function () {
|
||||
beforeEach(setupClient.setup);
|
||||
afterEach(setupClient.teardown);
|
||||
describe('client errors', function () {
|
||||
beforeEach(setupClient.setup)
|
||||
afterEach(setupClient.teardown)
|
||||
|
||||
it("RippleError with data", async function () {
|
||||
const error = new this.client.errors.RippleError("_message_", "_data_");
|
||||
assert.strictEqual(error.toString(), "[RippleError(_message_, '_data_')]");
|
||||
});
|
||||
it('RippleError with data', async function () {
|
||||
const error = new this.client.errors.RippleError('_message_', '_data_')
|
||||
assert.strictEqual(error.toString(), "[RippleError(_message_, '_data_')]")
|
||||
})
|
||||
|
||||
it("NotFoundError default message", async function () {
|
||||
const error = new this.client.errors.NotFoundError();
|
||||
assert.strictEqual(error.toString(), "[NotFoundError(Not found)]");
|
||||
});
|
||||
});
|
||||
it('NotFoundError default message', async function () {
|
||||
const error = new this.client.errors.NotFoundError()
|
||||
assert.strictEqual(error.toString(), '[NotFoundError(Not found)]')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user