From 75e01de8e4f8651a471a87f14449842232bda09e Mon Sep 17 00:00:00 2001 From: Rafael Caricio Date: Mon, 8 Sep 2014 00:48:10 +0200 Subject: [PATCH] Match correctly numbers --- spec/parser.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/parser.spec.js b/spec/parser.spec.js index e1281c6..2e842d4 100644 --- a/spec/parser.spec.js +++ b/spec/parser.spec.js @@ -113,7 +113,7 @@ describe('gradient-parser.js', function () { ].forEach(function(metric) { describe('parse color stop for metric '+ metric, function() { beforeEach(function() { - ast = gradients.parse('linear-gradient(blue 10' + metric + ', transparent)'); + ast = gradients.parse('linear-gradient(blue 10.3' + metric + ', transparent)'); subject = ast[0]; }); @@ -124,7 +124,7 @@ describe('gradient-parser.js', function () { it('should have the length', function() { expect(subject.length.type).to.equal(metric); - expect(subject.length.value).to.equal('10'); + expect(subject.length.value).to.equal('10.3'); }); }); }); @@ -133,7 +133,7 @@ describe('gradient-parser.js', function () { describe('parse all linear directional', function() { [ - {type: 'angular', unparsedValue: '145deg', value: '145'}, + {type: 'angular', unparsedValue: '-145deg', value: '-145'}, {type: 'directional', unparsedValue: 'to left top', value: 'left top'} ].forEach(function(orientation) { describe('parse orientation ' + orientation.type, function() {