-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c0f9e1b
commit f6350a4
Showing
3 changed files
with
52 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Attach by Process ID", | ||
"processId": "${command:PickProcess}", | ||
"request": "attach", | ||
"skipFiles": [ | ||
"<node_internals>/**" | ||
], | ||
"type": "pwa-node" | ||
}, | ||
{ | ||
"name": "Attach", | ||
"port": 9229, | ||
"request": "attach", | ||
"skipFiles": [ | ||
"<node_internals>/**" | ||
], | ||
"type": "pwa-node" | ||
}, | ||
{ | ||
"type": "node", | ||
"name": "vscode-jest-tests", | ||
"request": "launch", | ||
"args": ["--runInBand"], | ||
"cwd": "${fileDirname}", | ||
"console": "integratedTerminal", | ||
"internalConsoleOptions": "neverOpen", | ||
"disableOptimisticBPs": true, | ||
"program": "${workspaceFolder}/node_modules/jest/bin/jest" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
import { TestBed } from '@angular/core/testing'; | ||
import { CommonModule } from '@angular/common'; | ||
import { CommonModule,APP_BASE_HREF } from '@angular/common'; | ||
import { RouterModule } from '@angular/router'; | ||
import 'zone.js/dist/zone-testing' | ||
|
||
import { BreadcrumbService } from './breadcrumb.service'; | ||
|
||
describe('XngBreadcrumbService', () => { | ||
describe('BreadcrumbService', () => { | ||
beforeEach(() => | ||
TestBed.configureTestingModule({ | ||
imports: [CommonModule, RouterModule.forRoot([])] | ||
imports: [CommonModule, RouterModule.forRoot([])], | ||
providers: [ | ||
{ provide: APP_BASE_HREF, useValue: '/' } | ||
] | ||
}) | ||
); | ||
|
||
it('should be created', () => { | ||
const service: BreadcrumbService = TestBed.get(BreadcrumbService); | ||
const service: BreadcrumbService = TestBed.inject(BreadcrumbService); | ||
expect(service).toBeTruthy(); | ||
}); | ||
}); |