strings_standalone.js 273 B

12345678910111213
  1. $(document).ready(function() {
  2. module("String extensions");
  3. test("underscore not included", function() {
  4. raises(function() { _("foo") }, /TypeError/);
  5. });
  6. test("provides standalone functions", function() {
  7. equal(typeof _.str.trim, "function");
  8. });
  9. });