Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9b7673f

Browse files
committed
Adding test to cover PlotlyService.setModuleName
1 parentcaf3de8 commit9b7673f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎src/app/shared/plotly.service.spec.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ describe('PlotlyService', () => {
3636
expect(service.getPlotly()).toBe(PlotlyJS);
3737
}));
3838

39+
it('should set the module name',()=>{
40+
expect((PlotlyServiceasany)._moduleName).toBeUndefined();
41+
PlotlyService.setModuleName('ViaCDN');
42+
expect((PlotlyServiceasany)._moduleName).toBe('ViaCDN');
43+
PlotlyService.setModuleName('ViaCDN');
44+
45+
// cleaning up
46+
(PlotlyServiceasany)._moduleName=undefined;
47+
});
48+
3949
it('should call plotly.newPlot method',inject([PlotlyService],async(service:PlotlyService)=>{
4050
returnnewPromise(async(resolve)=>{
4151
constplotly=service.getPlotly();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp