mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
ci: Use mocha for both deno and bun (#4067)
* Use mocha for both deno and bun * Use any Bun 1.1 * remove build:type dependency in lib-check.yml * Pin point 1.1.42 * remove packages/bot/.mocharc.json
This commit is contained in:
@@ -15,14 +15,12 @@ describe('bucket.ts', () => {
|
||||
let clock: sinon.SinonFakeTimers
|
||||
|
||||
beforeEach(() => {
|
||||
console.log('before')
|
||||
clock = sinon.useFakeTimers()
|
||||
})
|
||||
|
||||
afterEach(() => {
|
||||
sinon.restore()
|
||||
clock.restore()
|
||||
console.log('after')
|
||||
})
|
||||
|
||||
describe('LeakyBucket function', () => {
|
||||
|
||||
@@ -7,7 +7,7 @@ describe('urlToBase64.ts', () => {
|
||||
let fetchStub: sinon.SinonStub
|
||||
|
||||
beforeEach(() => {
|
||||
fetchStub = sinon.stub(typeof global !== 'undefined' ? global : window, 'fetch')
|
||||
fetchStub = sinon.stub(globalThis, 'fetch')
|
||||
})
|
||||
|
||||
afterEach(() => {
|
||||
|
||||
Reference in New Issue
Block a user