From f985a1c7d44c09253f9f4d5b435f2a67e2432d10 Mon Sep 17 00:00:00 2001 From: madhuka Date: Thu, 2 Jul 2015 22:24:11 +0530 Subject: [PATCH] Fixing nvd3 chart type for MBHchart --- test/spec/chart-factory/nvd3-chart-factory.js | 2 +- test/spec/services/switch-chart.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/spec/chart-factory/nvd3-chart-factory.js b/test/spec/chart-factory/nvd3-chart-factory.js index 0ec7e5a..e3f1b81 100644 --- a/test/spec/chart-factory/nvd3-chart-factory.js +++ b/test/spec/chart-factory/nvd3-chart-factory.js @@ -39,7 +39,7 @@ describe("apacheZeppelinGsocApp NVD3ChartFactory", function() { //changing the mock chart type myChart.setChartType('Bar'); expect(myChart.type).toBe('Bar'); - expect(myChart.viewModel.options.chart.type).toBe('discreteBarChart'); + expect(myChart.viewModel.options.chart.type).toBe('multiBarHorizontalChart'); }); }); describe("view model", function() { diff --git a/test/spec/services/switch-chart.js b/test/spec/services/switch-chart.js index c1d19da..94fbfc0 100644 --- a/test/spec/services/switch-chart.js +++ b/test/spec/services/switch-chart.js @@ -94,7 +94,7 @@ describe("apacheZeppelinGsocApp chartService", function() { 'lineChart'); expect(chartService.getNVD3Chart('Bar').viewModel.options.chart .type).toBe( - 'discreteBarChart'); + 'multiBarHorizontalChart'); expect(chartService.getNVD3Chart('Bar').type).toBe( 'Bar'); });