anything and stringMatching have custom pretty-print now.

This commit is contained in:
slackersoft
2015-01-21 12:59:01 -08:00
parent 6ae054c3e2
commit 1dd4af3835
4 changed files with 20 additions and 0 deletions

View File

@@ -18,4 +18,10 @@ describe("StringMatching", function() {
new j$.StringMatching({});
}).toThrowError(/not a String or a RegExp/);
});
it("jasmineToString's itself", function() {
var matching = new j$.StringMatching(/^foo/);
expect(matching.jasmineToString()).toEqual("<jasmine.stringMatching(/^foo/)>");
});
});