Adding tests for Path#moveTo

This commit is contained in:
Jeff Avallone 2018-02-18 15:49:20 -05:00
parent bb37848265
commit 45b652d9af

View File

@ -2,6 +2,9 @@ import Path from './path';
describe('Path', () => {
[
// moveTo
[ 'moveTo', { x: 5, y: 1 }, 'M5,1' ],
[ 'moveTo', { x: 5, y: 1, relative: true }, 'm5,1' ],
// lineTo
[ 'lineTo', { x: 5, y: 1 }, 'L5,1' ],
[ 'lineTo', { x: 5, y: 0 }, 'H5' ],