Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit f786cc4

Browse files
committed
Fix tests
1 parent 2a3e5fa commit f786cc4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/index-test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@
33
describe('functions', () => {
44
describe('happyHolidays', () => {
55
it('returns "Happy holidays!"', () => {
6-
expect(happyHolidays()).to.equal('Happy holidays!')
6+
expect(happyHolidays()).toEqual('Happy holidays!')
77
})
88
})
99

1010
describe('happyHolidaysTo(name)', () => {
1111
it('returns "Happy holidays, ${name}!"', () => {
12-
expect(happyHolidaysTo('you')).to.equal('Happy holidays, you!')
12+
expect(happyHolidaysTo('you')).toEqual('Happy holidays, you!')
1313
})
1414
})
1515

1616
describe('happyHolidayTo(holiday, name)', () => {
1717
it('returns "Happy ${holiday}, ${name}!"', () => {
18-
expect(happyHolidayTo('Independence Day', 'you')).to.equal('Happy Independence Day, you!')
18+
expect(happyHolidayTo('Independence Day', 'you')).toEqual('Happy Independence Day, you!')
1919
})
2020
})
2121

2222
describe('holidayCountdown(holiday, days)', () => {
2323
it('returns "It\'s ${days} until ${holiday}!"', () => {
24-
expect(holidayCountdown("Mother's Day", 20)).to.equal("It's 20 days until Mother's Day!")
24+
expect(holidayCountdown("Mother's Day", 20)).toEqual("It's 20 days until Mother's Day!")
2525
})
2626
})
2727
})

0 commit comments

Comments
 (0)