From 370edd2e2e58a7eefeee0bc527ee34abee4445fa Mon Sep 17 00:00:00 2001 From: Olly Smith Date: Thu, 29 Nov 2012 08:18:14 +0000 Subject: [PATCH] Unit test stubs. --- spec/lib/line/line_spec.coffee | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/spec/lib/line/line_spec.coffee b/spec/lib/line/line_spec.coffee index e540da7..2c8e6e6 100644 --- a/spec/lib/line/line_spec.coffee +++ b/spec/lib/line/line_spec.coffee @@ -67,3 +67,15 @@ describe 'Morris.Line', -> x = new Date(d) "#{x.getYear()}/#{x.getMonth()+1}/#{x.getDay()}" chart.data.map((x) -> x.label).should == ['2012/1/1', '2012/1/2'] + + describe '#generatePaths', -> + it 'should generate smooth lines when options.smooth is true' + it 'should generate jagged lines when options.smooth is false' + it 'should generate smooth/jagged lines according to the value for each series when options.smooth is an array' + it 'should filter undefined values from series' + it 'should filter null values from series only when options.continuousLine is true' + + describe '#createPath', -> + it 'should generate a smooth line' + it 'should generate a jagged line' + it 'should break the line at null values'