Sha256: 67bce699b675691a0f5c0e64bf6e9febd0380fba20a9e9924194aa2419c3d15b

Contents?: true

Size: 584 Bytes

Versions: 23

Compression:

Stored size: 584 Bytes

Contents

describe('formatErrorMsg', function () {
  it('should format an error with a domain', function() {
    var formator = jasmineUnderTest.formatErrorMsg('api');
    expect(formator('message')).toBe('api : message');
    expect(formator('message2')).toBe('api : message2');
  });

  it('should format an error with a domain and usage', function() {
    var formator = jasmineUnderTest.formatErrorMsg('api', 'with a param');
    expect(formator('message')).toBe('api : message\nUsage: with a param');
    expect(formator('message2')).toBe('api : message2\nUsage: with a param');
  });
});

Version data entries

23 entries across 20 versions & 2 rubygems

Version Path
tdiary-5.0.8 vendor/bundle/gems/tdiary-5.0.7/vendor/bundle/gems/jasmine-core-2.8.0/lib/jasmine-core/spec/core/formatErrorMsgSpec.js
jasmine-core-2.99.1 ./lib/jasmine-core/spec/core/formatErrorMsgSpec.js
jasmine-core-3.0.0 ./lib/jasmine-core/spec/core/formatErrorMsgSpec.js
jasmine-core-2.99.0 ./lib/jasmine-core/spec/core/formatErrorMsgSpec.js
jasmine-core-2.9.1 ./lib/jasmine-core/spec/core/formatErrorMsgSpec.js
jasmine-core-2.9.0 ./lib/jasmine-core/spec/core/formatErrorMsgSpec.js
tdiary-5.0.7 vendor/bundle/gems/jasmine-core-2.8.0/lib/jasmine-core/spec/core/formatErrorMsgSpec.js
tdiary-5.0.6 vendor/bundle/gems/jasmine-core-2.8.0/lib/jasmine-core/spec/core/formatErrorMsgSpec.js
jasmine-core-2.8.0 ./lib/jasmine-core/spec/core/formatErrorMsgSpec.js
jasmine-core-2.7.0 ./lib/jasmine-core/spec/core/formatErrorMsgSpec.js
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/jasmine-core-2.5.2/lib/jasmine-core/spec/core/formatErrorMsgSpec.js
tdiary-5.0.5 vendor/bundle/gems/jasmine-core-2.5.2/lib/jasmine-core/spec/core/formatErrorMsgSpec.js
tdiary-5.0.5 vendor/bundle/gems/jasmine-core-2.6.3/lib/jasmine-core/spec/core/formatErrorMsgSpec.js
tdiary-5.0.5 vendor/bundle/gems/jasmine-core-2.6.4/lib/jasmine-core/spec/core/formatErrorMsgSpec.js
jasmine-core-2.6.4 ./lib/jasmine-core/spec/core/formatErrorMsgSpec.js
jasmine-core-2.6.3 ./lib/jasmine-core/spec/core/formatErrorMsgSpec.js
jasmine-core-2.6.2 ./lib/jasmine-core/spec/core/formatErrorMsgSpec.js
jasmine-core-2.6.1 ./lib/jasmine-core/spec/core/formatErrorMsgSpec.js
jasmine-core-2.6.0 ./lib/jasmine-core/spec/core/formatErrorMsgSpec.js
tdiary-5.0.4 vendor/bundle/gems/jasmine-core-2.5.2/lib/jasmine-core/spec/core/formatErrorMsgSpec.js