angular-test Questions

1

Solved

I have the following angular service and its jasmine test. The test calls f1() and spies on f2(). The function f2 takes variable v2 and modifies it (sets field a to 3). The function f2 should be ca...
Mythomania asked 4/2, 2018 at 10:29

2

Solved

Is it possible to login to a Google account with Cypress.io using the Google authentication pop-up window? I can get the window to open, but then Cypress can't detect the ID for the email input fi...
Saida asked 14/12, 2017 at 2:35

1

I have a data service which fetches the data from server and makes multiple requests which then return an array of observables. I want to test the data. What i tried doing is in the mockrespone I ...

2

Solved

When using the following configuration for a test fixture, I get complaints that the tag cannot be found. Substituting the MockSelectionToolComponent directly in AppModule works fine, so must be so...
Scutcheon asked 26/6, 2017 at 10:52

4

Solved

I've got a component that uses the @Input() annotation on an instance variable and I'm trying to write my unit test for the openProductPage() method, but I'm a little lost at how I setup my unit te...
Formalin asked 15/4, 2016 at 18:52

2

Solved

When do you use the async function in the TestBed when testing in Angular 2? When do you use this? beforeEach(() => { TestBed.configureTestingModule({ declarations: [MyModule], schemas: [N...

© 2022 - 2024 — McMap. All rights reserved.