mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
17 lines
442 B
TypeScript
17 lines
442 B
TypeScript
import { assert } from "chai";
|
|
|
|
import setupClient from "../setupClient";
|
|
|
|
describe("isValidSecret", function () {
|
|
beforeEach(setupClient.setup);
|
|
afterEach(setupClient.teardown);
|
|
|
|
it("returns true for valid secret", async function () {
|
|
assert(this.client.isValidSecret("snsakdSrZSLkYpCXxfRkS4Sh96PMK"));
|
|
});
|
|
|
|
it("returns false for invalid secret", async function () {
|
|
assert(!this.client.isValidSecret("foobar"));
|
|
});
|
|
});
|