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-6.1.3 test/i18n/translate.service.test.js
bastion-6.1.2 test/i18n/translate.service.test.js
bastion-5.1.1 test/i18n/translate.service.test.js
bastion-6.1.1 test/i18n/translate.service.test.js
bastion-6.1.0 test/i18n/translate.service.test.js
bastion-6.0.0 test/i18n/translate.service.test.js
bastion-5.1.0 test/i18n/translate.service.test.js
bastion-5.0.10 test/i18n/translate.service.test.js
bastion-5.0.9 test/i18n/translate.service.test.js
bastion-5.0.8 test/i18n/translate.service.test.js
bastion-5.0.7 test/i18n/translate.service.test.js
bastion-5.0.6 test/i18n/translate.service.test.js
bastion-5.0.5 test/i18n/translate.service.test.js
bastion-5.0.4 test/i18n/translate.service.test.js
bastion-5.0.3 test/i18n/translate.service.test.js
bastion-5.0.2 test/i18n/translate.service.test.js
bastion-5.0.1 test/i18n/translate.service.test.js
bastion-5.0.0 test/i18n/translate.service.test.js
bastion-4.3.1 test/i18n/translate.service.test.js
bastion-4.3.0 test/i18n/translate.service.test.js