You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/indexTest.js
-70Lines changed: 0 additions & 70 deletions
Original file line number
Diff line number
Diff line change
@@ -44,74 +44,4 @@ describe("index.js", () => {
44
44
expect(emphatic).to.equal("You are ||a dedicated programmer||!")
45
45
});
46
46
})
47
-
48
-
describe("defines an object called Calculator",function(){
49
-
it("has a JavaScript Object called Calculator as a local variable",function(){
50
-
expect(Calculator).to.be.a('object')
51
-
})
52
-
53
-
describe("that has a function called add",function(){
54
-
it("Calculator.add exists",function(){
55
-
expect(Calculator.add).to.exist
56
-
})
57
-
58
-
it("calculates 1 + 3",function(){
59
-
expect(Calculator.add(1,3)).to.equal(4)
60
-
})
61
-
})
62
-
63
-
describe("that has a function called subtract",function(){
64
-
it("Calculator.subtract exists",function(){
65
-
expect(Calculator.subtract).to.exist
66
-
})
67
-
68
-
it("calculates 1 - 3",function(){
69
-
expect(Calculator.subtract(1,3)).to.equal(-2)
70
-
})
71
-
})
72
-
73
-
describe("that has a function called multiply",function(){
74
-
it("Calculator.multiply exists",function(){
75
-
expect(Calculator.multiply).to.exist
76
-
})
77
-
78
-
it("calculates 1 * 3",function(){
79
-
expect(Calculator.multiply(1,3)).to.equal(3)
80
-
})
81
-
})
82
-
83
-
describe("that has a function called divide",function(){
84
-
it("Calculator.divide exists",function(){
85
-
expect(Calculator.divide).to.exist
86
-
})
87
-
88
-
it("calculates 10 / 5",function(){
89
-
expect(Calculator.divide(10,5)).to.equal(2)
90
-
})
91
-
})
92
-
})
93
-
94
-
describe("Defines a function called actionApplyer",function(){
95
-
it("exists",function(){
96
-
expect(actionApplyer).to.exist
97
-
})
98
-
99
-
describe("receives two arguments: a starting integer and an array of functions",function(){
100
-
it("returns the given starting point, unchanged, when the array is empty",function(){
101
-
expect(actionApplyer(0,[])).to.equal(0)
102
-
})
103
-
104
-
it("Given 13, returns 4 after being acted on by several functions",function(){
105
-
letmessage="13, multiplied by 2, added to 1000 and then modulo 7 is 4. Apply each function in the Array of functions on the given base (13) OR on the result of the use of the previous function to get this result"
0 commit comments