mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
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:
-13
@@ -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");
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user