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