1
0
mirror of https://framagit.org/framasoft/peertube/search-index/ synced 2025-01-10 16:42:36 +01:00
sepia-search-motore-di-rice.../server/helpers/core-utils.ts
2020-12-29 16:04:27 +01:00

17 lines
298 B
TypeScript

function isTestInstance () {
return process.env.NODE_ENV === 'test'
}
function waitMs (ms: number) {
return new Promise<void>(res => {
setTimeout(() => res(), ms)
})
}
// ---------------------------------------------------------------------------
export {
isTestInstance,
waitMs
}