1
0
mirror of https://framagit.org/framasoft/peertube/search-index/ synced 2025-01-22 07:26:53 +01:00
sepia-search-motore-di-rice.../server/helpers/core-utils.ts
2020-03-04 15:32:39 +01:00

17 lines
292 B
TypeScript

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