Sha256: a979f987db0dc2af4c53a9436618b3d8feb0b39424a2b02af39448b0df16b0dc
Contents?: true
Size: 572 Bytes
Versions: 57
Compression:
Stored size: 572 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').and.returnValue(string); expect(translate(string)).toBe(string); expect(gettextCatalog.getString).toHaveBeenCalledWith(string); }); });
Version data entries
57 entries across 57 versions & 1 rubygems