Title: Angular Plotly test TypeError: Cannot read properties of undefined (reading 'data') · Issue #257 · plotly/angular-plotly.js · GitHub
Open Graph Title: Angular Plotly test TypeError: Cannot read properties of undefined (reading 'data') · Issue #257 · plotly/angular-plotly.js
X Title: Angular Plotly test TypeError: Cannot read properties of undefined (reading 'data') · Issue #257 · plotly/angular-plotly.js
Description: i am having an issue running the tests file for my page TypeError: Cannot read properties of undefined (reading 'data') TypeError: Cannot read properties of undefined (reading 'data') at PlotlyComponent.createFigure (http://localhost:987...
Open Graph Description: i am having an issue running the tests file for my page TypeError: Cannot read properties of undefined (reading 'data') TypeError: Cannot read properties of undefined (reading 'data') at PlotlyComp...
X Description: i am having an issue running the tests file for my page TypeError: Cannot read properties of undefined (reading 'data') TypeError: Cannot read properties of undefined (reading 'data'...
Opengraph URL: https://github.com/plotly/angular-plotly.js/issues/257
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Angular Plotly test TypeError: Cannot read properties of undefined (reading 'data') ","articleBody":"i am having an issue running the tests file for my page \r\n\r\n```[GraphComponent](http://localhost:9876/context.html?spec=GraphComponent) > [shoud create the app](http://localhost:9876/context.html?spec=GraphComponent%20shoud%20create%20the%20app)\r\nTypeError: Cannot read properties of undefined (reading 'data')\r\nTypeError: Cannot read properties of undefined (reading 'data')\r\n at PlotlyComponent.createFigure (http://localhost:9876/_karma_webpack_/webpack:/node_modules/angular-plotly.js/__ivy_ngcc__/fesm2015/angular-plotly.js.js:285:21)\r\n at PlotlyComponent.call [as ngOnDestroy] (http://localhost:9876/_karma_webpack_/webpack:/node_modules/angular-plotly.js/__ivy_ngcc__/fesm2015/angular-plotly.js.js:195:29)\r\n at executeOnDestroys (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2015/core.mjs:6537:32)\r\n at cleanUpView (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2015/core.mjs:6438:9)\r\n at destroyViewTree (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2015/core.mjs:6264:21)\r\n at destroyLView (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2015/core.mjs:6416:9)\r\n at RootViewRef.destroy (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2015/core.mjs:13512:9)\r\n at ComponentRef.destroy (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2015/core.mjs:13958:23)\r\n at ComponentFixture.destroy (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2015/testing.mjs:228:31)\r\n at UserContext.\u003canonymous> (http://localhost:9876/_karma_webpack_/webpack:/src/app/pages/graph.component.spec.ts:163:17)\r\n\r\ni am using PlotlyViaWindowModule, when i start ng serve the plot is working correctly without any issues but i cant run the test\r\n\r\n\r\ndescribe('GraphComponent', () => {\r\n let component: GraphComponent;\r\n let fixture: ComponentFixture\u003cGraphComponent>;\r\n let debugElement: DebugElement;\r\n\r\n beforeEach(waitForAsync(() => {\r\n TestBed.configureTestingModule({\r\n declarations: [... , PlotlyComponent], providers: [...PlotlyService, { provide: MyPlotService, useClass: myPlotServiceMock},\r\n], imports: [\r\n ...\r\n PlotlyViaWindowModule,]\r\n\r\nbeforeEach(() => {\r\n fixture = TestBed.createComponent(GraphComponent);\r\n component = fixture.componentInstance;\r\n debugElement = fixture.debugElement;\r\n\r\n \r\n fixture.detectChanges();\r\n });\r\n\r\n it('shoud create the app', () => {\r\n expect(component).toBeTruthy();\r\n });","author":{"url":"https://github.com/bonifacemwanza","@type":"Person","name":"bonifacemwanza"},"datePublished":"2024-03-18T09:35:03Z","url":"https://github.com/plotly/angular-plotly.js/issues/257"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:92e7cd11-3774-aa87-ec5c-6d80e89bd2a5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A8C:E84AE:4DFC:6026:6B01F68C |
| html-safe-nonce | 6f837b85a227993c6ebc594dcfdd085fc81d770447e7860e3e51074749395849 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QThDOkU4NEFFOjRERkM6NjAyNjo2QjAxRjY4QyIsInZpc2l0b3JfaWQiOiI1NTM3Nzc4NTIwODMyNDcyNzE2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 85a1337b1502465af28ea4e149412cdb241955df1690f1bbd07e31753172b09f |
| hovercard-subject-tag | issue:2191683858 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/angular-plotly.js/257/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4470f7a1042d5bf0fe6267f4a05d740c5df89c6ce3cb1da46f5f5808272ec62a/plotly/angular-plotly.js/issues/257 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4470f7a1042d5bf0fe6267f4a05d740c5df89c6ce3cb1da46f5f5808272ec62a/plotly/angular-plotly.js/issues/257 |
| og:image:alt | i am having an issue running the tests file for my page TypeError: Cannot read properties of undefined (reading 'data') TypeError: Cannot read properties of undefined (reading 'data') at PlotlyComp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bonifacemwanza |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/angular-plotly.js git https://github.com/plotly/angular-plotly.js.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 125262347 |
| octolytics-dimension-repository_nwo | plotly/angular-plotly.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 125262347 |
| octolytics-dimension-repository_network_root_nwo | plotly/angular-plotly.js |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width