autocomplete send form after uri handled

This commit is contained in:
Manuel Araoz 2014-07-02 17:35:37 -03:00
commit 8acaca75fb
6 changed files with 37 additions and 7 deletions

View file

@ -373,7 +373,7 @@ describe("Unit: Controllers", function() {
beforeEach(inject(function($controller, $rootScope) {
scope = $rootScope.$new();
var routeParams = {
data: 'bitcoin:19mP9FKrXqL46Si58pHdhGKow88SUPy1V8%3Famount=1&message=a%20bitcoin%20donation'
data: 'bitcoin:19mP9FKrXqL46Si58pHdhGKow88SUPy1V8%3Famount=0.1&message=a%20bitcoin%20donation'
};
what = $controller('UriPaymentController', {
$scope: scope,
@ -389,7 +389,7 @@ describe("Unit: Controllers", function() {
should.exist(what);
scope.protocol.should.equal('bitcoin');
scope.address.should.equal('19mP9FKrXqL46Si58pHdhGKow88SUPy1V8');
scope.amount.should.equal(1);
scope.amount.should.equal(0.1);
scope.message.should.equal('a bitcoin donation');
});
});