이게 내 코드

class Site {
    constructor() {
        this.boards = [];
    }

    addBoard(noticeBoard) {
        this.boards.push(noticeBoard);
    }

    findBoardByName(Name) {
        this.boards.find(element => element===Name)
    }  
}

class Board extends Site {}


이게 테스트 코드

describe('Site 요구사항 테스트', () => {
    test('Site는 n개 이상 생성 할 수 있다.', () => {
        expect(() => {
            const _site1 = new Site();
            const _site2 = new Site();
        }).not.toThrow();
    });

    test('Site에는 Board를 추가하고 추가된 Board를 조회할 수 있다.', () => {
        const mySite = new Site();
        const noticeBoard = new Board('공지사항');

        mySite.addBoard(noticeBoard);

        expect(mySite.findBoardByName('공지사항')).toEqual(noticeBoard);
    });
});