Sha256: 76492d0373c53a58a907626afe5985e4a366f53a43dbf38e303e0f481e5b0bd1

Contents?: true

Size: 419 Bytes

Versions: 4

Compression:

Stored size: 419 Bytes

Contents

describe("toBeUndefined", function() {
  it("passes for undefined values", function() {
    var matcher = j$.matchers.toBeUndefined(),
      result;

    result = matcher.compare(void 0);
    expect(result.pass).toBe(true);

  });

  it("fails when matching defined values", function() {
    var matcher = j$.matchers.toBeUndefined();

    result = matcher.compare('foo');
    expect(result.pass).toBe(false);
  })
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jasmine-core-2.0.0 ./lib/jasmine-core/spec/core/matchers/toBeUndefinedSpec.js
jasmine-core-2.0.0.rc5 ./lib/jasmine-core/spec/core/matchers/toBeUndefinedSpec.js
jasmine-core-2.0.0.rc3 ./lib/jasmine-core/spec/core/matchers/toBeUndefinedSpec.js
jasmine-core-2.0.0.rc2 ./lib/jasmine-core/spec/core/matchers/toBeUndefinedSpec.js