Files
jasmine/spec/html/HtmlSpecFilterSpec.js
Sheel Choksi f68657f14e Have Jasmine HTML use the source files in specs
Similar to the changes in Jasmine core and console, this gets the
HTML specs of Jasmine using j$ instead of jasmine so that they use
the source files instead of the built distribution
2013-07-13 23:36:29 -07:00

18 lines
532 B
JavaScript

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);
});
});