(test: string)
| 7 | const CONTROL = 'CONTROL' |
| 8 | |
| 9 | export function bucket(test: string) { |
| 10 | const id = getUserEventsId() |
| 11 | const hash = murmur(test).hash(id).result() |
| 12 | return hash % 2 ? TREATMENT : CONTROL |
| 13 | } |
| 14 | |
| 15 | export function sendSuccess(test: string) { |
| 16 | return sendEvent({ |
no test coverage detected