Sha256: 8c9f9bbd7b9b6e4af09a73579dfa862e16e28e00e5f7cd3d7380b3e523b89d02
Contents?: true
Size: 566 Bytes
Versions: 13
Compression:
Stored size: 566 Bytes
Contents
describe('Service: translate', function() { var translate, gettextCatalog; beforeEach(module('Bastion.i18n')); beforeEach(inject(function(_translate_, _gettextCatalog_) { translate = _translate_; gettextCatalog = _gettextCatalog_; })); it('passes through to the gettextCatalog.getString', function() { var string = 'lalala'; spyOn(gettextCatalog, 'getString').andReturn(string); expect(translate(string)).toBe(string); expect(gettextCatalog.getString).toHaveBeenCalledWith(string); }); });
Version data entries
13 entries across 13 versions & 1 rubygems