Skip to content

armgit / my-yt

Public Imported from GitHub
0

A clean and minimal youtube frontend, without all the ads and whistles

JavaScript

test: no need to mock timers since http module is already isolated from main server application

Christian Fei7a4b011f2145
diff --git a/test/server.test.js b/test/server.test.js
index a03ae4f..a1f2e57 100644
--- a/test/server.test.js
+++ b/test/server.test.js
@@ -1,10 +1,9 @@
-import { test, describe, mock } from 'node:test'
+import { test, describe } from 'node:test'
import fs from 'fs'
import assert from 'assert'
import { createServer } from '../server/http.js'
import Repository from '../lib/repository.js'
-mock.timers.enable({ apis: ['setInterval'] })
let repo
const state = {}
const connections = []