Sha256: 0971a3294dc03923fb000c85cb8fc95b2754167cb7e8547914827d7b2d732749

Contents?: true

Size: 1.27 KB

Versions: 40

Compression:

Stored size: 1.27 KB

Contents

getJasmineRequireObj().interface = function(jasmine, env) {
  var jasmineInterface = {
    describe: function(description, specDefinitions) {
      return env.describe(description, specDefinitions);
    },

    xdescribe: function(description, specDefinitions) {
      return env.xdescribe(description, specDefinitions);
    },

    it: function(desc, func) {
      return env.it(desc, func);
    },

    xit: function(desc, func) {
      return env.xit(desc, func);
    },

    beforeEach: function(beforeEachFunction) {
      return env.beforeEach(beforeEachFunction);
    },

    afterEach: function(afterEachFunction) {
      return env.afterEach(afterEachFunction);
    },

    expect: function(actual) {
      return env.expect(actual);
    },

    pending: function() {
      return env.pending();
    },

    spyOn: function(obj, methodName) {
      return env.spyOn(obj, methodName);
    },

    jsApiReporter: new jasmine.JsApiReporter({
      timer: new jasmine.Timer()
    }),

    jasmine: jasmine
  };

  jasmine.addCustomEqualityTester = function(tester) {
    env.addCustomEqualityTester(tester);
  };

  jasmine.addMatchers = function(matchers) {
    return env.addMatchers(matchers);
  };

  jasmine.clock = function() {
    return env.clock;
  };

  return jasmineInterface;
};

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/requireInterface.js
upjs-rails-0.11.0 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.10.5 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.10.4 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.10.3 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.10.2 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.10.1 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.10.0 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.9.1 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.9.0 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.8.2 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.8.1 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.8.0 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.7.8 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.7.7 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.7.6 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.7.5 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.7.4 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.7.3 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.7.2 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js