From dd3014cf00bd64d14b0b7a81eec773772b28014c Mon Sep 17 00:00:00 2001 From: Vitaly Puzrin Date: Sun, 3 Jan 2016 06:35:09 +0300 Subject: [PATCH] More parser tests --- test/path_parse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/path_parse.js b/test/path_parse.js index 92aae2e..fabe549 100644 --- a/test/path_parse.js +++ b/test/path_parse.js @@ -54,8 +54,8 @@ describe('Path parse', function () { assert.equal(svgpath('M+').err, 'SvgPath: param should start with 0..9 or `.` (at pos 2)'); assert.equal(svgpath('M00').err, 'SvgPath: numbers started with `0` such as `09` are ilegal (at pos 1)'); assert.equal(svgpath('M0e').err, 'SvgPath: invalid float exponent (at pos 3)'); - assert.equal(svgpath('M0').err, 'SvgPath: missed param (at pos 2)'); + assert.equal(svgpath('M0,0,').err, 'SvgPath: missed param (at pos 5)'); assert.equal(svgpath('M0 .e3').err, 'SvgPath: invalid float exponent (at pos 4)'); }); });