@@ -16,33 +16,33 @@ describe("Stack", () => {
16
16
expect ( stack . isEmpty ( ) ) . toBeTruthy ( )
17
17
} ) ;
18
18
19
- test ( "push() should add a node" , ( ) => {
20
- let node : Node = new Node ( ) ;
21
- stack . push ( node ) ;
22
- expect ( stack . isEmpty ( ) ) . toBeFalsy ( ) ;
23
- } ) ;
24
-
25
- test ( "count() should count its nodes" , ( ) => {
26
- let node : Node = new Node ( ) ;
27
- stack . push ( node ) ;
28
- stack . push ( node ) ;
29
- expect ( stack . count ( ) ) . toEqual ( 2 ) ;
30
- } ) ;
31
-
32
- test ( "pop() should remove the last node added" , ( ) => {
33
- let node1 : Node = new Node ( ) ;
34
- let node2 : Node = new Node ( ) ;
35
- stack . push ( node1 ) ;
36
- stack . push ( node2 ) ;
37
- let lastNode = stack . pop ( ) ;
38
- expect ( lastNode ) . toEqual ( node2 ) ;
39
- } ) ;
40
-
41
- test ( "peek() should return the top node" , ( ) => {
42
- let node1 : Node = new Node ( ) ;
43
- let node2 : Node = new Node ( ) ;
44
- stack . push ( node1 ) ;
45
- stack . push ( node2 ) ;
46
- expect ( stack . peek ( ) ) . toEqual ( node2 ) ;
47
- } ) ;
48
- } )
19
+ // test("push() should add a node", () => {
20
+ // let node: Node = new Node();
21
+ // stack.push(node);
22
+ // expect(stack.isEmpty()).toBeFalsy();
23
+ // });
24
+ //
25
+ // test("count() should count its nodes", () => {
26
+ // let node: Node = new Node();
27
+ // stack.push(node);
28
+ // stack.push(node);
29
+ // expect(stack.count()).toEqual(2);
30
+ // });
31
+ //
32
+ // test("pop() should remove the last node added", () => {
33
+ // let node1: Node = new Node();
34
+ // let node2: Node = new Node();
35
+ // stack.push(node1);
36
+ // stack.push(node2);
37
+ // let lastNode = stack.pop();
38
+ // expect(lastNode).toEqual(node2);
39
+ // });
40
+ //
41
+ // test("peek() should return the top node", () => {
42
+ // let node1: Node = new Node();
43
+ // let node2: Node = new Node();
44
+ // stack.push(node1);
45
+ // stack.push(node2);
46
+ // expect(stack.peek()).toEqual(node2);
47
+ // });
48
+ } )
0 commit comments