import * as assert from 'assert' ; import { renderPath } from '../../src/operators/renderPath' ; test ( 'renders a segment properly' , ( ) => { const start = [ [ 0 , 10 , 20 , 20 , 40 , 40 , 50 , 50 ] ] ; assert . equal ( renderPath ( start , Math . round ) , 'M 0 10 C 20 20 40 40 50 50' ) ; } ) ;