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.23 test/i18n/translate.service.test.js
bastion-6.1.22 test/i18n/translate.service.test.js
bastion-6.1.21 test/i18n/translate.service.test.js
bastion-6.1.20 test/i18n/translate.service.test.js
bastion-6.1.19 test/i18n/translate.service.test.js
bastion-6.1.18 test/i18n/translate.service.test.js
bastion-6.1.17 test/i18n/translate.service.test.js
bastion-6.1.16 test/i18n/translate.service.test.js
bastion-6.1.15 test/i18n/translate.service.test.js
bastion-6.1.14 test/i18n/translate.service.test.js
bastion-6.1.13 test/i18n/translate.service.test.js
bastion-6.1.12 test/i18n/translate.service.test.js
bastion-6.1.11 test/i18n/translate.service.test.js
bastion-6.1.10 test/i18n/translate.service.test.js
bastion-6.1.9 test/i18n/translate.service.test.js
bastion-6.1.8 test/i18n/translate.service.test.js
bastion-6.1.7 test/i18n/translate.service.test.js
bastion-6.1.6 test/i18n/translate.service.test.js
bastion-6.1.5 test/i18n/translate.service.test.js
bastion-6.1.4 test/i18n/translate.service.test.js