MCPcopy Index your code
hub / github.com/codecombat/codecombat / setTestGroupNumberUS

Function setTestGroupNumberUS

app/core/auth.js:87–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85}
86
87const setTestGroupNumberUS = function () {
88 if (me && (me.get('country') === 'united-states') && (me.get('testGroupNumberUS') == null)) {
89 // Assign testGroupNumberUS to returning visitors; new ones in server/models/User
90 me.set('testGroupNumberUS', Math.floor(Math.random() * 256))
91 return me.patch()
92 }
93}
94
95init()

Callers 1

initFunction · 0.85

Calls 3

patchMethod · 0.80
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected