fix(curriculum): simplify empty board formatToString test in lab-project-idea-board (#67108)

Co-authored-by: Jeevankumar S <jeevenkumar2003@gmail.com>
This commit is contained in:
Ragini Pandey
2026-05-01 16:57:00 +05:30
committed by GitHub
parent bb92cb4f2d
commit d4a091651b
@@ -218,21 +218,8 @@ assert.isEmpty(techProjects.ideas);
When `new ProjectIdeaBoard("Empty Board")` is empty, `emptyBoard.formatToString()` should return `Empty Board has 0 idea(s)\n`.
```js
let smartHome = new ProjectIdea(
"Smart Home System",
"An integrated system to control lighting, temperature, and security devices remotely."
);
// Create a project board and pin ideas
let techProjects = new ProjectIdeaBoard("Tech Projects Board");
// Create an empty board
let emptyBoard = new ProjectIdeaBoard("Empty Board");
// Attempt to unpin a project from an empty board
emptyBoard.unpin(smartHome);
assert.equal(emptyBoard.formatToString(), "Empty Board has 0 idea(s)\n");
```