Skip to content

Commit 0ccf9c4

Browse files
author
TheHalcyonSavant
committed
redundancy fix
repetitive definitions on pizzaPit and slice
1 parent a7552f5 commit 0ccf9c4

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

1820EN_03_Code/05 - promise api/promises.spec.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ describe('pizza pit', function () {
7979

8080
it('should illustrate promise rejection', function () {
8181

82-
pizzaPit = new Restaurant($q, $rootScope);
8382
var pizzaDelivered = pizzaPit.takeOrder('Capricciosa');
8483
pizzaDelivered.then(pawel.eat, pawel.beHungry);
8584

@@ -100,10 +99,6 @@ describe('pizza pit', function () {
10099

101100
it('should illustrate successful promise chaining', function () {
102101

103-
var slice = function(pizza) {
104-
return "sliced "+pizza;
105-
};
106-
107102
pizzaPit.takeOrder('Margherita').then(slice).then(pawel.eat);
108103

109104
pizzaPit.deliverOrder();

0 commit comments

Comments
 (0)