-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added test for AsyncPipe and warning that missing icon will become an…
… error Closes #50
- Loading branch information
Showing
5 changed files
with
61 additions
and
12 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
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
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,8 +1,4 @@ | ||
import { IconLookup } from '@fortawesome/fontawesome-svg-core'; | ||
|
||
export const faWarnIfIconSpecMissing = (iconSpec: IconLookup) => { | ||
if (!iconSpec) { | ||
console.error('FontAwesome: Could not find icon. ' + | ||
`It looks like you've provided a null or undefined icon object to this component.`); | ||
} | ||
export const faWarnIfIconSpecMissing = () => { | ||
console.error('FontAwesome: Property `icon` is required for `fa-icon`/`fa-duotone-icon` components. ' + | ||
`This warning will become a hard error in 0.6.0.`); | ||
}; |
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