MCPcopy Create free account
hub / github.com/EsperoTech/yaade / StringMatching

Function StringMatching

server/src/main/resources/jasmine.js:2555–2561  ·  view source on GitHub ↗
(expected)

Source from the content-addressed store, hash-verified

2553
2554getJasmineRequireObj().StringMatching = function(j$) {
2555 function StringMatching(expected) {
2556 if (!j$.isString_(expected) && !j$.isA_('RegExp', expected)) {
2557 throw new Error('Expected is not a String or a RegExp');
2558 }
2559
2560 this.regexp = new RegExp(expected);
2561 }
2562
2563 StringMatching.prototype.asymmetricMatch = function(other) {
2564 return this.regexp.test(other);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected