lib/Spec.js
function wrapper(matcherName, legacyMatcher){
      return function(util, customEqualityTesters){
        return { 
          compare: function(actual, expected){
            var scope = {actual: actual}, message, result;
            
            result = legacyMatcher.call(scope, expected)
            
            message = scope.message && scope.message()[result ? 1 : 0];
            return {
              pass:result,
              message : message
            }
          }
        }
      }
    }
function wrapper(matcherName, legacyMatcher){
      return function(util, customEqualityTesters){
        return { 
          compare: function(actual, expected){
            var scope = {actual: actual}, message, result;
            
            result = legacyMatcher.call(scope, expected)
            
            message = scope.message && scope.message()[result ? 1 : 0];
            return {
              pass:result,
              message : message
            }
          }
        }
      }
    }
function wrapper ( matcherName , legacyMatcher ) { return function ( util , customEqualityTesters ) { return { compare : function ( actual , expected ) { var scope = { actual : actual } , message , result ; result = legacyMatcher . call ( scope , expected ) message = scope . message && scope . message ( ) [ result ? 1 : 0 ] ; return { pass : result , message : message } } } } }
Wraps Jasmine2 matcher to be compliant with Jasmine 1 API.
Wraps Jasmine2 matcher to be compliant with Jasmine 1 API .