import { describe } from 'mocha' import { expect } from 'chai'; import { getInitialRoomDossier } from './cb.js' import { RateLimiter } from "limiter"; describe('cb', function () { let limiter = new RateLimiter({ tokensPerInterval: 10, interval: "minute" }) describe('getInitialRoomDossier', function () { it('should return json', async function () { const dossier = await getInitialRoomDossier(limiter, 'https://chaturbate.com/projektmelody') expect(dossier).to.have.property('wschat_host') }) }) })