Skip to content

Commit

Permalink
Test Complating for Google Chart Factory
Browse files Browse the repository at this point in the history
  • Loading branch information
Madhuka committed Jun 27, 2015
1 parent dca562c commit f79087c
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion test/spec/chart-factory/google-chart-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ describe("apacheZeppelinGsocApp GoogleChartFactory", function() {
it(" to be define", function() {
expect(myChart).toBeDefined();
});
it(" using google chart library", function() {
expect(myChart.libname).toBe('googleChart');
});
});
describe("Model", function() {
//testing Google chart is built in Genric chart model
Expand Down Expand Up @@ -48,7 +51,18 @@ describe("apacheZeppelinGsocApp GoogleChartFactory", function() {
expect(myChart.viewModel.formatters).toBeDefined();
});
it("testing for deafults vales of attributes", function() {
expect(myChart.viewModel.options.height).toBe(300);
expect(myChart.viewModel.options.height).toBe(400);
expect(myChart.viewModel.options.displayExactValues).toBe(
true);
expect(myChart.viewModel.options.fill).toBe(20);
});
it("testing for axis", function() {
expect(myChart.viewModel.options.vAxis).toBeDefined();
expect(myChart.viewModel.options.hAxis).toBeDefined();
expect(myChart.viewModel.options.vAxis instanceof Object).toBe(
true);
expect(myChart.viewModel.options.hAxis instanceof Object).toBe(
true);
});
});
});

0 comments on commit f79087c

Please sign in to comment.