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

Version Path
bastion-4.2.2 test/i18n/translate.service.test.js
bastion-4.2.1 test/i18n/translate.service.test.js
bastion-4.2.0 test/i18n/translate.service.test.js
bastion-4.1.0 test/i18n/translate.service.test.js
bastion-4.0.0 test/i18n/translate.service.test.js
bastion-3.4.4 test/i18n/translate.service.test.js
bastion-3.4.3 test/i18n/translate.service.test.js
bastion-3.4.2 test/i18n/translate.service.test.js
bastion-3.4.1 test/i18n/translate.service.test.js
bastion-3.4.0 test/i18n/translate.service.test.js
bastion-3.3.6 test/i18n/translate.service.test.js
bastion-3.3.5 test/i18n/translate.service.test.js
bastion-3.3.4 test/i18n/translate.service.test.js
bastion-3.3.3 test/i18n/translate.service.test.js
bastion-3.3.2 test/i18n/translate.service.test.js
bastion-3.3.1 test/i18n/translate.service.test.js
bastion-3.3.0 test/i18n/translate.service.test.js