* Verify required props and throw error if necessary. * @param {!BentoMathmlDef.Props} props * @return {boolean} true on valid
({formula})
| 73 | * @return {boolean} true on valid |
| 74 | */ |
| 75 | function validProps({formula}) { |
| 76 | // Perform manual checking as assertion is not available for Bento: Issue #32739 |
| 77 | if (!formula) { |
| 78 | console /*OK*/ |
| 79 | .warn('formula is required for <BentoMathml>'); |
| 80 | return false; |
| 81 | } |
| 82 | return true; |
| 83 | } |
no test coverage detected