long_string.js 411 B

12345678910111213
  1. import { long_string } from "../data.js";
  2. import { expect } from "https://esm.sh/v126/chai@4.3.7/X-dHMvZXhwZWN0/es2021/chai.bundle.mjs";
  3. /** @param {unknown[]} received */
  4. export const check = (received) => {
  5. expect(received).to.deep.equal([long_string]);
  6. };
  7. /**
  8. * @param {import("../peerjs").DataConnection} dataConnection
  9. */
  10. export const send = (dataConnection) => {
  11. dataConnection.send(long_string);
  12. };