From e792a015c9809827f18607d03c501e20b7c22535 Mon Sep 17 00:00:00 2001 From: Buzunda Date: Wed, 14 Feb 2018 21:27:04 -0200 Subject: [PATCH] Added a caret to mask factory to fix issues with the cursor positioning in android with chrome. Fix #305. Fixing money-test it syntax. --- src/global/money/money.test.js | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/src/global/money/money.test.js b/src/global/money/money.test.js index d9358a32..c5c9f723 100644 --- a/src/global/money/money.test.js +++ b/src/global/money/money.test.js @@ -154,23 +154,8 @@ describe('ui-money-mask', function() { } }); - it('should handle corner cases', angular.mock.inject(function($rootScope) { - var input = TestUtil.compile(''); - var model = input.controller('ngModel'); - - var tests = [ - {modelValue: '0', viewValue: '$ 0.00'}, - {modelValue: '0.0', viewValue: '$ 0.00'}, - {modelValue: 0, viewValue: '$ 0.00'}, - {}, - {modelValue: null, viewValue: null}, - ]; - - tests.forEach(function(test) { - $rootScope.model = test.modelValue; - $rootScope.$digest(); - expect(model.$viewValue).toBe(test.viewValue); - }); + describe('should handle corner cases', angular.mock.inject(function($rootScope) { + it('should return null if $isEmpty value', function() { var input = TestUtil.compile('', {});