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
// define your alternative colors, similar way to the default theme | |
... | |
// Create the theme object (a Sass map containing all of the palettes). | |
$alt-theme: mat-dark-theme($dark-primary, $dark-accent, $dark-warn); | |
.theme-dark { | |
@include angular-material-theme($my-app-theme); | |
} |
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
@include mat-core($typography-config = null): | |
- angular-material-typography(): | |
- mat-base-typography() | |
- mat-autocomplete-typography() | |
- mat-button-typography() | |
- mat-card-typography() | |
- mat-form-field-typography() | |
- mat-table-typography() | |
- ... | |
- mat-ripple() // basic styling for ripple effects |
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('#isTestContext', () => { | |
beforeEach(() => { | |
delete process.env.JEST_WORKER_ID; | |
delete (window as any).__karma__; | |
delete (window as any).Cypress; | |
}); | |
it('#isTestContext should be true for Jest', () => { | |
expect(isTestContext()).toBe(false); | |
process.env.JEST_WORKER_ID = '1'; | |
expect(isTestContext()).toBe(true); |
OlderNewer