From bb744ef2715d8c276ac67f6433be62cee5178355 Mon Sep 17 00:00:00 2001 From: Yemel Jardi Date: Wed, 13 Aug 2014 15:15:53 -0300 Subject: [PATCH] Update karma tests --- test/unit/controllers/controllersSpec.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/unit/controllers/controllersSpec.js b/test/unit/controllers/controllersSpec.js index ed257b8ef..5cee6da41 100644 --- a/test/unit/controllers/controllersSpec.js +++ b/test/unit/controllers/controllersSpec.js @@ -422,7 +422,7 @@ describe("Unit: Controllers", function() { beforeEach(inject(function($controller, $rootScope) { scope = $rootScope.$new(); var routeParams = { - data: 'bitcoin:19mP9FKrXqL46Si58pHdhGKow88SUPy1V8%3Famount=0.1&message=a%20bitcoin%20donation' + data: 'bitcoin:19mP9FKrXqL46Si58pHdhGKow88SUPy1V8?amount=0.1&message=a%20bitcoin%20donation' }; what = $controller('UriPaymentController', { $scope: scope, @@ -436,10 +436,10 @@ describe("Unit: Controllers", function() { it('should parse url correctly', function() { should.exist(what); - scope.protocol.should.equal('bitcoin'); - scope.address.should.equal('19mP9FKrXqL46Si58pHdhGKow88SUPy1V8'); - scope.amount.should.equal(0.1); - scope.message.should.equal('a bitcoin donation'); + should.exist(scope.pendingPayment); + scope.pendingPayment.address.data.should.equal('19mP9FKrXqL46Si58pHdhGKow88SUPy1V8'); + scope.pendingPayment.data.amount.should.equal(0.1); + scope.pendingPayment.data.message.should.equal('a bitcoin donation'); }); });