describe("Calculator", function() {
  beforeEach(function() {
    Calculator.current = 0;
  });

  it("should store the current value at all times", function() {
    expect(Calculator.current).toBeDefined();    
  });

  it("current should have initial value of zero '0' ", function() {
    expect(Calculator.current).toEqual(0);
  });

  it("should add numbers", function() {
    var input = 5,
        output = 5;
    expect(Calculator.add(input)).toEqual(output);
    // See what happens if we add a second number
    output = 10;
    expect(Calculator.add(input)).toEqual(output);
  });
  it("should add any number of numbers", function() {
    var output = 6;
    expect(Calculator.add(1,2,3)).toEqual(output);
    // test to make sure the previous total is not getting reset
    output = 16;
    expect(Calculator.add(1,2,3,4)).toEqual(output);
  });
});
@@ -82,32 +82,82 @@
 ent = 0;%0A  %7D);%0A%0A
+  describe('when adding numbers', function () %7B%0A  
   it(%22should sto
@@ -201,32 +201,34 @@
 unction() %7B%0A    
+ 
+ 
 expect(Calculato
@@ -257,23 +257,27 @@
 ();    %0A
+  
   %7D);%0A%0A
+  
   it(%22cu
@@ -336,24 +336,26 @@
 ion() %7B%0A    
+  
 expect(Calcu
@@ -381,16 +381,18 @@
 ual(0);%0A
+  
   %7D);%0A%0A 
@@ -392,16 +392,18 @@
  %7D);%0A%0A  
+ 
+ 
 it(%22shou
@@ -432,24 +432,26 @@
 ion() %7B%0A    
+  
 var input = 
@@ -453,16 +453,18 @@
 ut = 5,%0A
+  
         
@@ -475,24 +475,26 @@
 ut = 5;%0A    
+  
 expect(Calcu
@@ -532,16 +532,18 @@
 t);%0A    
+  
 // See w
@@ -580,24 +580,26 @@
  number%0A    
+ 
+ 
 output = 10;
@@ -599,16 +599,18 @@
 t = 10;%0A
+  
     expe
@@ -652,22 +652,27 @@
 utput);%0A
+  
   %7D);%0A
+%0A  
   it(%22sh
@@ -713,24 +713,26 @@
 unction() %7B%0A
+  
     var outp
@@ -739,24 +739,26 @@
 ut = 6;%0A    
+  
 expect(Calcu
@@ -788,24 +788,26 @@
 al(output);%0A
+  
     // test 
@@ -859,16 +859,18 @@
 g reset%0A
+  
     outp
@@ -878,24 +878,26 @@
 t = 16;%0A    
+  
 expect(Calcu
@@ -933,16 +933,251 @@
 utput);%0A
+    %7D);%0A  %7D);%0A%0A  describe(%22when substracting numbers%22, function() %7B%0A    it(%22should subtract any number of numbers%22, function() %7B%0A      var input = 5,%0A          output = 5;%0A      expect(Calculator.substract(input)).toEqual(-5);%0A    %7D);%0A
   %7D);%0A%7D)

add subtraction spec