(course)
| 97 | } |
| 98 | |
| 99 | includesCourse (course) { |
| 100 | const courseID = (typeof course.get === 'function' ? course.get('name') : undefined) || course |
| 101 | if (this.get('type') === 'starter_license') { |
| 102 | const left = this.get('includedCourseIDs') || [] |
| 103 | return left.includes(courseID) |
| 104 | } else { |
| 105 | // no includedCourseIDs means full-license, so always return true |
| 106 | const left1 = this.get('includedCourseIDs') || [courseID] |
| 107 | return left1.includes(courseID) |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | numericalCourses () { |
| 112 | if (!__guard__(this.get('includedCourseIDs'), x => x.length)) { return utils.courseNumericalStatus.FULL_ACCESS } |
no test coverage detected