Sha256: b2d807455212369e96509f7a3304d41780ced9aa643783035619723f40be57e7

Contents?: true

Size: 498 Bytes

Versions: 59

Compression:

Stored size: 498 Bytes

Contents

describe("toBeLessThan", function() {
  it("passes when actual < expected", function() {
    var matcher = j$.matchers.toBeLessThan(),
      result;

    result = matcher.compare(1, 2);
    expect(result.pass).toBe(true);
  });

  it("fails when actual <= expected", function() {
    var matcher = j$.matchers.toBeLessThan(),
      result;

    result = matcher.compare(1, 1);
    expect(result.pass).toBe(false);

    result = matcher.compare(2, 1);
    expect(result.pass).toBe(false);
  });
});

Version data entries

59 entries across 59 versions & 4 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/bootstrap-tagsinput/lib/jasmine/spec/core/matchers/toBeLessThanSpec.js
tdiary-5.0.2 vendor/bundle/gems/jasmine-core-2.4.1/lib/jasmine-core/spec/core/matchers/toBeLessThanSpec.js
tdiary-5.0.1 vendor/bundle/gems/jasmine-core-2.4.1/lib/jasmine-core/spec/core/matchers/toBeLessThanSpec.js
jasmine-core-2.4.1 ./lib/jasmine-core/spec/core/matchers/toBeLessThanSpec.js
jasmine-core-2.4.0 ./lib/jasmine-core/spec/core/matchers/toBeLessThanSpec.js
upjs-rails-0.11.0 spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeLessThanSpec.js
upjs-rails-0.10.5 spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeLessThanSpec.js
upjs-rails-0.10.4 spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeLessThanSpec.js
upjs-rails-0.10.3 spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeLessThanSpec.js
upjs-rails-0.10.2 spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeLessThanSpec.js
upjs-rails-0.10.1 spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeLessThanSpec.js
upjs-rails-0.10.0 spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeLessThanSpec.js
upjs-rails-0.9.1 spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeLessThanSpec.js
upjs-rails-0.9.0 spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeLessThanSpec.js
upjs-rails-0.8.2 spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeLessThanSpec.js
upjs-rails-0.8.1 spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeLessThanSpec.js
upjs-rails-0.8.0 spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeLessThanSpec.js
upjs-rails-0.7.8 spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeLessThanSpec.js
upjs-rails-0.7.7 spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeLessThanSpec.js
upjs-rails-0.7.6 spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeLessThanSpec.js