Bug (found via coverage wave 3, spikersoft-angular PR #551).
CourseModule (projects/spikersoft/src/app/_components/classes/module.ts) declares a constructor parameter number: number and a public number: number field, but the constructor body never runs this.number = number; — it only assigns activity_title, activity_type, lessons, title.
Result: everyCourseModule instance has number === undefined, even though classes.ts passes 1..10 for both cp101 and dbs101. The parameter is dead and the public field is permanently undefined.
Currently latent (no reader of module.number found in the classes dir), so no visible breakage — but any UI/logic that later orders or labels modules by .number would silently get undefined.
Fix: add this.number = number; to the constructor.
Pinned as a characterization test in PR #551 (classes.spec.ts) asserting the current undefined behavior and referencing this ticket; flip those assertions to expect 1..10 when fixed.
**Bug (found via coverage wave 3, spikersoft-angular PR #551).**
`CourseModule` (`projects/spikersoft/src/app/_components/classes/module.ts`) declares a constructor parameter `number: number` and a `public number: number` field, but the constructor body never runs `this.number = number;` — it only assigns `activity_title`, `activity_type`, `lessons`, `title`.
Result: **every** `CourseModule` instance has `number === undefined`, even though `classes.ts` passes `1..10` for both `cp101` and `dbs101`. The parameter is dead and the public field is permanently undefined.
Currently latent (no reader of `module.number` found in the classes dir), so no visible breakage — but any UI/logic that later orders or labels modules by `.number` would silently get `undefined`.
**Fix:** add `this.number = number;` to the constructor.
Pinned as a characterization test in PR #551 (`classes.spec.ts`) asserting the current `undefined` behavior and referencing this ticket; flip those assertions to expect `1..10` when fixed.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Bug (found via coverage wave 3, spikersoft-angular PR #551).
CourseModule(projects/spikersoft/src/app/_components/classes/module.ts) declares a constructor parameternumber: numberand apublic number: numberfield, but the constructor body never runsthis.number = number;— it only assignsactivity_title,activity_type,lessons,title.Result: every
CourseModuleinstance hasnumber === undefined, even thoughclasses.tspasses1..10for bothcp101anddbs101. The parameter is dead and the public field is permanently undefined.Currently latent (no reader of
module.numberfound in the classes dir), so no visible breakage — but any UI/logic that later orders or labels modules by.numberwould silently getundefined.Fix: add
this.number = number;to the constructor.Pinned as a characterization test in PR #551 (
classes.spec.ts) asserting the currentundefinedbehavior and referencing this ticket; flip those assertions to expect1..10when fixed.