-
Notifications
You must be signed in to change notification settings - Fork 716
/
indexTest.js
35 lines (33 loc) · 1.23 KB
/
indexTest.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
describe("breakfast", () => {
it("has a class of breakfast", () => {
expect(new Breakfast()).to.be.an.instanceof(Breakfast);
})
it("creates a new breakfast with the correct parameters", () => {
bfast = new Breakfast('eggs', 'juice')
expect(bfast.food).to.equal('eggs')
expect(bfast.drink).to.equal('juice')
})
})
describe("lunch", () => {
it("has a class of lunch", () => {
expect(new Lunch()).to.be.an.instanceof(Lunch);
})
it("creates a new lunch with the correct parameters", () => {
newlunch = new Lunch('side salad', 'broccoli cheddar soup', 'iced tea')
expect(newlunch.salad).to.equal('side salad')
expect(newlunch.soup).to.equal('broccoli cheddar soup')
expect(newlunch.drink).to.equal('iced tea')
})
})
describe("dinner", () => {
it("has a class of dinner", () => {
expect(new Dinner()).to.be.an.instanceof(Dinner);
})
it("creates a new dinner with the correct parameters", () => {
newdinner = new Dinner('balsamic salad', 'consomme', 'filet mignon', 'cheesecake')
expect(newdinner.salad).to.equal('balsamic salad')
expect(newdinner.soup).to.equal('consomme')
expect(newdinner.entree).to.equal('filet mignon')
expect(newdinner._dessert).to.equal('cheesecake')
})
})