Created
August 9, 2018 03:31
-
-
Save jkyoutsey/c78e0c51f83a75a997d631e58e41d7d6 to your computer and use it in GitHub Desktop.
Angular CanDeactivate Guard Unit Test Configuration
This file contains hidden or 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
describe('CanDeactivateGuardService', () => { | |
let mockComponent: MockComponent; | |
let service: CanDeactivateGuardService; | |
beforeEach(() => { | |
TestBed.configureTestingModule({ | |
providers: [ | |
CanDeactivateGuardService, | |
MockComponent | |
] | |
}); | |
service = TestBed.get(CanDeactivateGuardService); | |
mockComponent = TestBed.get(MockComponent); | |
}); | |
it('expect service to instantiate', () => { | |
expect(service).toBeTruthy(); | |
}); | |
// more tests | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment