- import { strings } from "../data.js";
- import { expect } from "https://esm.sh/v126/chai@4.3.7/X-dHMvZXhwZWN0/es2021/chai.bundle.mjs";
- /** @param {unknown[]} received */
- export const check = (received) => {
- expect(received).to.deep.equal(strings);
- };
- /**
- * @param {import("../peerjs").DataConnection} dataConnection
- */
- export const send = (dataConnection) => {
- for (const string of strings) {
- dataConnection.send(string);
- }
- };
|