mirror of
https://github.com/BradNut/graphbrainz
synced 2025-09-08 17:40:32 +00:00
11 lines
302 B
JavaScript
11 lines
302 B
JavaScript
/* global describe, it */
|
|
import { expect } from 'chai'
|
|
import RateLimit from '../src/rate-limit'
|
|
|
|
describe('RateLimit', () => {
|
|
it('defaults to 1 request per second', () => {
|
|
const limiter = new RateLimit()
|
|
expect(limiter.limit).to.equal(1)
|
|
expect(limiter.period).to.equal(1000)
|
|
})
|
|
})
|