Comments (2)
Did you add it in the Providers list for your TestBed?
You might also have an easier time simply mocking
AppInsightsService, copy/paste the entire Service, and have every method just return true
. Since with your Tests you're trying to test your own components, you don't need to test whether AppInsights works, it'd be a wormhole of dependency after dependency you'd be chasing :)
from angular-application-insights.
Thanks for the advice.
I'll try stubbing it out.
from angular-application-insights.
Related Issues (20)
- Angular 12 Support HOT 2
- Angular 13 support HOT 2
- Angular 14 support HOT 7
- Update of ApplicationInsights-JS used HOT 3
- Prevent Certain Data from Logging HOT 1
- Cannot find module '@angular/core' HOT 2
- upgrade to AI v2 HOT 8
- i wanted to make a heartbeat in my angular application HOT 1
- appInsightsService.queue set to undefined HOT 1
- Angular 8 (ivy) - ERROR in There is no format with import statements HOT 4
- Angular 8 support HOT 5
- Status Code: 400 100: Field 'ai.operation.name' on type 'ContextTagKeys' is too long. Expected: 1024 HOT 3
- Can't seem to update azure with any data? HOT 1
- Angular 9 support HOT 4
- Dependency tracking with ResultCode = 0 HOT 4
- Add missing property `enableAutoRouteTracking` to configuration HOT 1
- Generic type 'ModuleWithProviders<T>' requires 1 type argument(s) HOT 1
- warnings in Angular 10 upgrade - CommonJS or AMD dependencies can cause optimization bailouts HOT 2
- Move away from dependency on deprecated applicationinsights-js package HOT 2
- Angular 11 incompatible HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-application-insights.