Skip to content

Commit

Permalink
Merge pull request #668 from ike18t/renovate/root/prettier-2.3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
satanTime authored Jun 5, 2021
2 parents 5250069 + 5716724 commit 6fea785
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
7 changes: 3 additions & 4 deletions examples/TestProviderWithUseClass/test.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,9 @@ describe('TestProviderWithUseClass', () => {
afterAll(MockReset);

it('respects all dependencies', () => {
const service =
MockRender<Target1Service & Partial<Target2Service>>(
Target1Service,
).point.componentInstance;
const service = MockRender<
Target1Service & Partial<Target2Service>
>(Target1Service).point.componentInstance;

// Let's assert that service has a flag from Target2Service.
expect(service.flag).toBeTruthy();
Expand Down
7 changes: 3 additions & 4 deletions examples/TestProviderWithUseExisting/test.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,9 @@ describe('TestProviderWithUseExisting', () => {
afterAll(MockReset);

it('creates TargetService', () => {
const service =
MockRender<TargetService & Partial<{ name: string }>>(
TargetService,
).point.componentInstance;
const service = MockRender<
TargetService & Partial<{ name: string }>
>(TargetService).point.componentInstance;

// Because Service2 has been replaced with a mock copy,
// we are getting here a mock copy of Service2 instead of Service1.
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
"karma-typescript": "5.5.1",
"lint-staged": "11.0.0",
"npm": "6.14.13",
"prettier": "2.3.0",
"prettier": "2.3.1",
"primeng": "11.4.2",
"puppeteer": "10.0.0",
"rxjs": "6.6.7",
Expand Down

0 comments on commit 6fea785

Please # to comment.