diff --git a/tests/education.test.js b/tests/education.test.js new file mode 100644 index 000000000..a93ac4d81 --- /dev/null +++ b/tests/education.test.js @@ -0,0 +1,21 @@ +// tests/education.test.js +const Education = require('../education'); // Assuming you have an education module + +describe('Education Module', () => { + let education; + + beforeEach(() => { + education = new Education(); + }); + + test('should add a new course correctly', () => { + education.addCourse('JavaScript Basics'); + expect(education.getCourses()).toContain('JavaScript Basics'); + }); + + test('should remove a course correctly', () => { + education.addCourse('JavaScript Basics'); + education.removeCourse('JavaScript Basics'); + expect(education.getCourses()).not.toContain('JavaScript Basics'); + }); +});