testbed Questions
2
Solved
I've read the article about testing Ionic2 projects with TestBed and I've got the trouble when I'm trying to repeat example from article in my environment. When I try to start tests on Step 3 I hav...
Bigamy asked 24/3, 2017 at 7:48
1
Solved
I have a component that I am trying to setup and test using TestBed.
This component contains one class that has a parameter in the constructor that is an interface, not a concrete class. This inte...
Arjan asked 27/2, 2017 at 17:25
1
Solved
trying to learn this testing utility TestBed in angular-2 with a simple example and have hit my first blocker. google or SO search didn't yield any matching example,
so, I have a very basic compo...
Siward asked 12/2, 2017 at 19:23
1
Currently I am trying to test a child component which is accepting an input from the host component, and used within the ngOnInit life cycle hook like the code below.
@Component({
selector: 'my-...
Granlund asked 25/11, 2016 at 8:25
1
Solved
I try to mock requests in my application, but there is a problem with process variable. I store in process.env.backendUrl url to backend API. And then in RestService I have:
constructor(private ht...
1
We are using
TestBed.overrideComponent(CoolComponent, {
set: {
template: '<div id="fake-component">i am the fake component</div>',
selector: 'our-cool-component',
inputs: [ 'model...
Tide asked 2/9, 2016 at 16:15
2
I am trying to test a component which uses another service. And I want to isolate the component by providing a mock for the service. Before RC5 I can simply use addproviders which is now deprecated...
Incommodious asked 12/8, 2016 at 9:24
2
Solved
I'm rather new to unit-testing and am trying to feel out the best practices for the thing. I've seen several questions on here relating to unit-test inheriting a base class that itself contains sev...
Isoline asked 13/2, 2014 at 0:9
2
Solved
I'm using the GAE testbed service and when I run users.get_current_user() I get None i.e.
>>> import sys
>>> sys.path.append("/usr/local/google_appengine") # for Mac OS X
>>...
Bluma asked 3/6, 2011 at 16:13
© 2022 - 2024 — McMap. All rights reserved.