We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bdc292 commit e98bc68Copy full SHA for e98bc68
src/app/plotly/plotly.module.spec.ts
@@ -0,0 +1,25 @@
1
+import { PlotlyModule } from "./plotly.module";
2
+
3
4
5
+describe('PlotlyModule', () => {
6
7
+ it('should create', () => {
8
+ const fn = () => {
9
+ const mod = new PlotlyModule();
10
+ };
11
12
+ const msg = "Invalid PlotlyJS object. Please check https://github.com/plotly/angular-plotly.js#quick-start"
13
+ + " to see how to add PlotlyJS to your project.";
14
+ expect(fn).toThrowError(msg);
15
16
17
+ const fn2 = () => {
18
+ PlotlyModule.plotlyjs = {plot: function() { }};
19
20
21
22
+ expect(fn2).not.toThrowError(msg);
23
+ });
24
25
+});
0 commit comments