(str: string)
| 20 | }; |
| 21 | |
| 22 | export const hash = (str: string) => { |
| 23 | let hash = 5381, |
| 24 | i = str.length; |
| 25 | |
| 26 | while (i) { |
| 27 | hash = (hash * 33) ^ str.charCodeAt(--i); |
| 28 | } |
| 29 | return String(hash >>> 0); |
| 30 | }; |
| 31 | |
| 32 | export const networkDelay = () => { |
| 33 | const delayTime = process.env.TEST |
no outgoing calls
no test coverage detected