jQuery.mustache.js Test Runner

Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)

Tests completed in 39 milliseconds.
27 assertions of 27 passed, 0 failed.

  1. jQuery-Mustache: Mustache plugin exposed on jQuery (0, 1, 1)Rerun2 ms
    1. $.Mustache Plugin exposed
  2. jQuery-Mustache: allow overwrites when adding templates by default (0, 1, 1)Rerun1 ms
    1. Template was overwritten
  3. jQuery-Mustache: Disallowing overwriting templates triggers an error if an overwrite occurs (0, 1, 1)Rerun1 ms
    1. okay
  4. jQuery-Mustache: clear() removes all templates and flushes the Mustache cache. (0, 2, 2)Rerun1 ms
    1. Template was removed
    2. Mustache cache was cleared
  5. jQuery-Mustache: render() returns empty string if template not mapped and warnOnMissingTemplates is false (0, 1, 1)Rerun0 ms
    1. Empty String returned
  6. jQuery-Mustache: render() calls $.error if template not mapped and warnOnMissingTemplates is true (0, 1, 1)Rerun0 ms
    1. $.error invoked
  7. jQuery-Mustache: render() invoked Mustache.to_html with all the relevant bits and bobs (0, 3, 3)Rerun1 ms
    1. okay
    2. okay
    3. Template map supplied
  8. jQuery-Mustache: templates() returns all registered templates (0, 1, 1)Rerun0 ms
    1. okay
  9. jQuery-Mustache: templates() returns empty Array if no templates are registered (0, 1, 1)Rerun1 ms
    1. okay
  10. jQuery-Mustache: remove() does what it says on the tin (0, 1, 1)Rerun1 ms
    1. okay
  11. jQuery-Mustache: remove() returns the previous template value (0, 1, 1)Rerun0 ms
    1. okay
  12. jQuery-Mustache: remove() returns `undefined` if template was not previously mapped (0, 1, 1)Rerun0 ms
    1. okay
  13. jQuery-Mustache: Templates are trimmed of leading and trailing whitespace when added (0, 1, 1)Rerun0 ms
    1. okay
  14. jQuery-Mustache: externalTemplateDataType respected when external templates are loaded (0, 1, 1)Rerun0 ms
    1. externalTemplateDataType passed to jQuery.ajax()
  15. jQuery-Mustache: load() returns a Promise object (0, 1, 1)Rerun0 ms
    1. $.Mustache.load returns a Promise object
  16. jQuery-Mustache: load() parses response and adds templtes contained in script blocks (0, 1, 1)Rerun4 ms
    1. okay
  17. jQuery-Mustache: loadFromDom() specified template added (0, 1, 1)Rerun2 ms
    1. okay
  18. jQuery-Mustache: loadFromDom() error raised if named template not found (0, 1, 1)Rerun1 ms
    1. okay
  19. jQuery-Mustache: loadFromDom() all templates added if non specified (0, 1, 1)Rerun1 ms
    1. okay
  20. jQuery-Mustache: loadFromDom() only adds templates of the target domTemplateType from the `options` object (0, 1, 1)Rerun0 ms
    1. okay
  21. jQuery-Mustache: loadFromDom() can parse script tags from anywhere on the DOM (0, 1, 1)Rerun0 ms
    1. okay
  22. jQuery-Mustache: loadFromDom() handles escape characters and jQuery selector's in template element ids (0, 1, 1)Rerun1 ms
    1. okay
  23. jQuery-Mustache: has() can be used to query the presence of registered templates (0, 2, 2)Rerun0 ms
    1. okay
    2. okay