ionic-mocks
Advanced tools
Comparing version 0.6.0 to 0.6.2
{ | ||
"name": "ionic-mocks", | ||
"version": "0.6.0", | ||
"version": "0.6.2", | ||
"description": "Stubbed and Pre-mocked Ionic2 Objects", | ||
@@ -35,2 +35,2 @@ "repository": "git@github.com:stonelasley/ionic-mocks.git", | ||
} | ||
} | ||
} |
@@ -108,1 +108,12 @@ # ionic-mocks | ||
``` | ||
#### Provide Mocks in TestingModule | ||
```typescript | ||
TestBed.configureTestingModule({ | ||
imports: [IonicModule, AnotherModule], | ||
declarations: [MyComponent], | ||
providers: [ | ||
{provide: ViewController, useFactory: () => ViewControllerMock.instance()} | ||
] | ||
}); | ||
``` |
@@ -24,3 +24,7 @@ import { Observable } from 'rxjs'; | ||
'setBackButtonText', | ||
'showBackButton' | ||
'showBackButton', | ||
'_setHeader', | ||
'_setNavbar', | ||
'_setIONContent', | ||
'_setIONContentRef' | ||
]); | ||
@@ -47,2 +51,2 @@ | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
119
20761
37
461