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

Method hasAssessments

app/models/Classroom.js:439–447  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

437 }
438
439 hasAssessments (options) {
440 if (options == null) { options = {} }
441 if (options.courseId) {
442 const course = _.find(this.get('courses'), c => c._id === options.courseId)
443 if (!course) { return false }
444 return _.any(course.levels, { assessment: true })
445 }
446 return _.any(this.get('courses'), course => _.any(course.levels, { assessment: true }))
447 }
448
449 isGoogleClassroom () { return __guard__(this.get('googleClassroomId'), x => x.length) > 0 }
450

Callers 1

afterRenderMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected