Sha256: a5e37b98bae986bd4d520b21f16aeb7ae674b0323daabafa0adc568eac8a83d7

Contents?: true

Size: 914 Bytes

Versions: 44

Compression:

Stored size: 914 Bytes

Contents

describe("base.js", function() {
  describe("jasmine.MessageResult", function() {
    it("#toString should pretty-print and concatenate each part of the message", function() {
      var values = ["log", "message", 123, {key: "value"}, "FTW!"];
      var messageResult = new jasmine.MessageResult(values);
      expect(messageResult.toString()).toEqual("log message 123 { key : 'value' } FTW!");
    });
  });

  describe("jasmine.log", function() {
    it("should accept n arguments", function() {
      spyOn(jasmine.getEnv().currentSpec, 'log');
      jasmine.log(1, 2, 3);
      expect(jasmine.getEnv().currentSpec.log).toHaveBeenCalledWith(1, 2, 3);
    });
  });

  describe("jasmine.getGlobal", function() {
    it("should return the global object", function() {
      var globalObject = (function() {
        return this;
      })();

      expect(jasmine.getGlobal()).toBe(globalObject);
    });
  });
});

Version data entries

44 entries across 44 versions & 9 rubygems

Version Path
evergreen-1.3.0 lib/jasmine/spec/core/BaseSpec.js
evergreen-1.2.0 lib/jasmine/spec/core/BaseSpec.js
evergreen-1.1.3 lib/jasmine/spec/core/BaseSpec.js
evergreen-1.1.2 lib/jasmine/spec/core/BaseSpec.js
evergreen-1.1.0 lib/jasmine/spec/core/BaseSpec.js
rally-jasmine-core-1.2.0.3 ./lib/jasmine-core/spec/core/BaseSpec.js
evergreen-1.0.1 lib/jasmine/spec/core/BaseSpec.js
rally-jasmine-core-1.2.0.2 ./lib/jasmine-core/spec/core/BaseSpec.js
jasmine-core-1.3.1 ./lib/jasmine-core/spec/core/BaseSpec.js
jasmine-core-1.3.0 ./lib/jasmine-core/spec/core/BaseSpec.js
rally-jasmine-core-1.2.0.1 ./lib/jasmine-core/spec/core/BaseSpec.js
rally-jasmine-core-1.2.0.0 ./lib/jasmine-core/spec/core/BaseSpec.js
jasmine-core-1.2.0 ./lib/jasmine-core/spec/core/BaseSpec.js
jasmine-core-1.2.0.rc3 ./lib/jasmine-core/spec/core/BaseSpec.js
jasmine-core-1.2.0.rc2 ./lib/jasmine-core/spec/core/BaseSpec.js
evergreen-1.0.0 lib/jasmine/spec/core/BaseSpec.js
evergreen-1.0.0.rc lib/jasmine/spec/suites/BaseSpec.js
jasmine-core-1.2.0.rc1 ./lib/jasmine-core/spec/core/BaseSpec.js
jasmine-core-1.1.0 ./lib/jasmine-core/spec/core/BaseSpec.js
jasmine-core-1.1.0.rc4 ./lib/jasmine-core/spec/core/BaseSpec.js