function assertUnsafeTemplateOutputErrorThrown(func) {
  assertContains(
      'Sanitized content was not of kind HTML.', assertThrows(func).message);
}
Asserts that the function throws an error for unsafe templates.
@param {Function} func Callback to test.
@suppress {checkTypes} suppression added to enable type checking