Sha256: 305723e636215dd5a63d53a5c92634756555652a4de645a5baadd6450d4aec7e
Contents?: true
Size: 533 Bytes
Versions: 57
Compression:
Stored size: 533 Bytes
Contents
describe("j$.HtmlSpecFilter", function() { it("should match when no string is provided", function() { var specFilter = new j$.HtmlSpecFilter(); expect(specFilter.matches("foo")).toBe(true); expect(specFilter.matches("*bar")).toBe(true); }); it("should only match the provided string", function() { var specFilter = new j$.HtmlSpecFilter({ filterString: function() { return "foo"; } }); expect(specFilter.matches("foo")).toBe(true); expect(specFilter.matches("bar")).toBe(false); }); });
Version data entries
57 entries across 57 versions & 4 rubygems