We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7552f5 commit 0ccf9c4Copy full SHA for 0ccf9c4
1820EN_03_Code/05 - promise api/promises.spec.js
@@ -79,7 +79,6 @@ describe('pizza pit', function () {
79
80
it('should illustrate promise rejection', function () {
81
82
- pizzaPit = new Restaurant($q, $rootScope);
83
var pizzaDelivered = pizzaPit.takeOrder('Capricciosa');
84
pizzaDelivered.then(pawel.eat, pawel.beHungry);
85
@@ -100,10 +99,6 @@ describe('pizza pit', function () {
100
99
101
it('should illustrate successful promise chaining', function () {
102
103
- var slice = function(pizza) {
104
- return "sliced "+pizza;
105
- };
106
-
107
pizzaPit.takeOrder('Margherita').then(slice).then(pawel.eat);
108
109
pizzaPit.deliverOrder();
0 commit comments