MCPcopy Create free account
hub / github.com/codecombat/codecombat / findNextLevel

Method findNextLevel

app/models/Classroom.js:225–228  ·  view source on GitHub ↗
(sessions, courseLevels)

Source from the content-addressed store, hash-verified

223 }
224
225 findNextLevel (sessions, courseLevels) {
226 const nextLevelOriginal = findNextLevelsBySession(sessions, courseLevels.models)
227 return new Level(getLevelsDataByOriginals(courseLevels.models, [nextLevelOriginal])[0])
228 }
229
230 statsForSessions (sessions, courseID, levelsCollection) {
231 let complete, left, nextLevel, nextLevelNumber

Callers 3

utils.spec.coco.jsFile · 0.45
utils.spec.ozar.jsFile · 0.45
statsForSessionsMethod · 0.45

Calls 2

findNextLevelsBySessionFunction · 0.85
getLevelsDataByOriginalsFunction · 0.85

Tested by

no test coverage detected