Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(modal): add missing fields to
NgbModalConfig
(#3406)
This fixes TS compilation error when a user tries to set any of these fields in a `NgbModalConfig` instance.
- Loading branch information
1 parent
2cf28f4
commit 7324083
Showing
2 changed files
with
31 additions
and
1 deletion.
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,21 @@ | ||
import {inject} from '@angular/core/testing'; | ||
|
||
import {NgbModalConfig} from './modal-config'; | ||
|
||
describe('NgbModalConfig', () => { | ||
|
||
it('should have sensible default values', inject([NgbModalConfig], (config: NgbModalConfig) => { | ||
|
||
expect(config.ariaLabelledBy).toBeUndefined(); | ||
expect(config.backdrop).toBe(true); | ||
expect(config.backdropClass).toBeUndefined(); | ||
expect(config.beforeDismiss).toBeUndefined(); | ||
expect(config.centered).toBeUndefined(); | ||
expect(config.container).toBeUndefined(); | ||
expect(config.injector).toBeUndefined(); | ||
expect(config.keyboard).toBe(true); | ||
expect(config.scrollable).toBeUndefined(); | ||
expect(config.size).toBeUndefined(); | ||
expect(config.windowClass).toBeUndefined(); | ||
})); | ||
}); |
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