Adds @xrplf prettier config (#1598)

* build: new prettier config
This commit is contained in:
Nathan Nichols
2021-09-03 15:41:20 -07:00
committed by Mayukha Vadari
parent 8c5bc22317
commit e200de3073
263 changed files with 10185 additions and 10133 deletions

View File

@@ -1,24 +1,24 @@
import { assert } from "chai";
import { assert } from 'chai'
import { Client } from "xrpl-local";
import { Client } from 'xrpl-local'
describe("client constructor", function () {
it("Client - implicit server port", function () {
new Client("wss://s1.ripple.com");
});
describe('client constructor', function () {
it('Client - implicit server port', function () {
new Client('wss://s1.ripple.com')
})
it("Client invalid options", function () {
it('Client invalid options', function () {
// @ts-expect-error - This is intentionally invalid
assert.throws(() => new Client({ invalid: true }));
});
assert.throws(() => new Client({ invalid: true }))
})
it("Client valid options", function () {
const client = new Client("wss://s:1");
const privateConnectionUrl = (client.connection as any).url;
assert.deepEqual(privateConnectionUrl, "wss://s:1");
});
it('Client valid options', function () {
const client = new Client('wss://s:1')
const privateConnectionUrl = (client.connection as any).url
assert.deepEqual(privateConnectionUrl, 'wss://s:1')
})
it("Client invalid server uri", function () {
assert.throws(() => new Client("wss//s:1"));
});
});
it('Client invalid server uri', function () {
assert.throws(() => new Client('wss//s:1'))
})
})