Skip to content

Commit

Permalink
Test Usecase adding
Browse files Browse the repository at this point in the history
  • Loading branch information
Madhuka committed Jun 29, 2015
1 parent a555875 commit 97625b2
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test/spec/controllers/use-case-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
'use strict';
describe("apacheZeppelinGsocApp UseCase Testing", function() {
beforeEach(module("apacheZeppelinGsocApp"));
var myChart;
beforeEach(inject(function(GoogleChartFactory,HighChartFactory,NVD3ChartFactory) {
//making mock chart called mychart from GoogleChartFactory
myChart = GoogleChartFactory;
}));
//testing for Google chart factory
describe("Switching Chart Types", function() {
it(" from default chart type to line then to bar", function() {
expect(myChart).toBeDefined();
expect(myChart.libname).toBe('googleChart');
expect(myChart.viewModel.type).toBe('BarChart');
myChart.setChartType('Line');
expect(myChart.viewModel.type).toBe('LineChart');
myChart.setChartType('Bar');
expect(myChart.viewModel.type).toBe('BarChart');
});
it(" using google chart library", function() {

});
});
});

0 comments on commit 97625b2

Please sign in to comment.