Sha256: b1e76f66bb7a283d3a1f23569d88ce63e91b32a9321f30e3b8c92031e7056628

Contents?: true

Size: 884 Bytes

Versions: 40

Compression:

Stored size: 884 Bytes

Contents

getJasmineRequireObj().Any = function() {

  function Any(expectedObject) {
    this.expectedObject = expectedObject;
  }

  Any.prototype.jasmineMatches = function(other) {
    if (this.expectedObject == String) {
      return typeof other == 'string' || other instanceof String;
    }

    if (this.expectedObject == Number) {
      return typeof other == 'number' || other instanceof Number;
    }

    if (this.expectedObject == Function) {
      return typeof other == 'function' || other instanceof Function;
    }

    if (this.expectedObject == Object) {
      return typeof other == 'object';
    }
    
    if (this.expectedObject == Boolean) {
      return typeof other == 'boolean';
    }

    return other instanceof this.expectedObject;
  };

  Any.prototype.jasmineToString = function() {
    return '<jasmine.any(' + this.expectedObject + ')>';
  };

  return Any;
};

Version data entries

40 entries across 40 versions & 2 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/bootstrap-tagsinput/lib/jasmine/src/core/Any.js
upjs-rails-0.11.0 spec_app/vendor/assets/bower_components/jasmine/src/core/Any.js
upjs-rails-0.10.5 spec_app/vendor/assets/bower_components/jasmine/src/core/Any.js
upjs-rails-0.10.4 spec_app/vendor/assets/bower_components/jasmine/src/core/Any.js
upjs-rails-0.10.3 spec_app/vendor/assets/bower_components/jasmine/src/core/Any.js
upjs-rails-0.10.2 spec_app/vendor/assets/bower_components/jasmine/src/core/Any.js
upjs-rails-0.10.1 spec_app/vendor/assets/bower_components/jasmine/src/core/Any.js
upjs-rails-0.10.0 spec_app/vendor/assets/bower_components/jasmine/src/core/Any.js
upjs-rails-0.9.1 spec_app/vendor/assets/bower_components/jasmine/src/core/Any.js
upjs-rails-0.9.0 spec_app/vendor/assets/bower_components/jasmine/src/core/Any.js
upjs-rails-0.8.2 spec_app/vendor/assets/bower_components/jasmine/src/core/Any.js
upjs-rails-0.8.1 spec_app/vendor/assets/bower_components/jasmine/src/core/Any.js
upjs-rails-0.8.0 spec_app/vendor/assets/bower_components/jasmine/src/core/Any.js
upjs-rails-0.7.8 spec_app/vendor/assets/bower_components/jasmine/src/core/Any.js
upjs-rails-0.7.7 spec_app/vendor/assets/bower_components/jasmine/src/core/Any.js
upjs-rails-0.7.6 spec_app/vendor/assets/bower_components/jasmine/src/core/Any.js
upjs-rails-0.7.5 spec_app/vendor/assets/bower_components/jasmine/src/core/Any.js
upjs-rails-0.7.4 spec_app/vendor/assets/bower_components/jasmine/src/core/Any.js
upjs-rails-0.7.3 spec_app/vendor/assets/bower_components/jasmine/src/core/Any.js
upjs-rails-0.7.2 spec_app/vendor/assets/bower_components/jasmine/src/core/Any.js