-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
'use strict'; | ||
|
||
describe("apacheZeppelinGsocApp NVD3ChartFactory", function() { | ||
beforeEach(module("apacheZeppelinGsocApp")); | ||
var NVD3ChartFactory; | ||
beforeEach(inject(function(NVD3ChartFactory) { | ||
NVD3ChartFactory = NVD3ChartFactory; | ||
})); | ||
describe("Testing Function APIs", function() { | ||
/* it("NVD3ChartFactory to be define", function() { | ||
expect(NVD3ChartFactory).toBeDefined(); | ||
expect(NVD3ChartFactory.ChartList).toBeDefined(); | ||
expect(NVD3ChartFactory.viewModel()).toBeDefined(); | ||
});*/ | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
'use strict'; | ||
|
||
describe("apacheZeppelinGsocApp chartService", function() { | ||
beforeEach(module("apacheZeppelinGsocApp")); | ||
var chartService; | ||
beforeEach(inject(function(ChartService) { | ||
chartService = ChartService; | ||
})); | ||
describe("Testing Function APIs", function() { | ||
it("chartService to be define", function() { | ||
expect(chartService).toBeDefined(); | ||
expect(chartService.getHighChart()).toBeDefined(); | ||
expect(chartService.getGoogleChart()).toBeDefined(); | ||
expect(chartService.getNVD3Chart()).toBeDefined(); | ||
}); | ||
}); | ||
describe("Testing Function Operations", function() { | ||
it("chartService on getGoogleChart", function() { | ||
expect(chartService).toBeDefined(); | ||
expect(chartService.getGoogleChart('Bar')).toBeDefined(); | ||
expect(chartService.getGoogleChart('Line').libname).toBe( | ||
'googleChart'); | ||
expect(chartService.getGoogleChart('Line').type).toBe('Line'); | ||
expect(chartService.getGoogleChart('Line').viewModel.type).toBe( | ||
'LineChart'); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
'use strict'; | ||
|
||
describe("apacheZeppelinGsocApp chartService", function() { | ||
beforeEach(module("apacheZeppelinGsocApp")); | ||
var chartService; | ||
beforeEach(inject(function(ChartService) { | ||
chartService = ChartService; | ||
})); | ||
describe("Testing Function APIs", function() { | ||
it("chartService to be define", function() { | ||
expect(chartService).toBeDefined(); | ||
expect(chartService.getHighChart()).toBeDefined(); | ||
expect(chartService.getGoogleChart()).toBeDefined(); | ||
expect(chartService.getNVD3Chart()).toBeDefined(); | ||
}); | ||
}); | ||
describe("Testing Function Operations", function() { | ||
it("chartService on getGoogleChart", function() { | ||
expect(chartService).toBeDefined(); | ||
expect(chartService.getGoogleChart('Bar')).toBeDefined(); | ||
expect(chartService.getGoogleChart('Line').libname).toBe( | ||
'googleChart'); | ||
expect(chartService.getGoogleChart('Line').type).toBe('Line'); | ||
expect(chartService.getGoogleChart('Line').viewModel.type).toBe( | ||
'LineChart'); | ||
}); | ||
}); | ||
}); |