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

Version Path
bastion-3.2.2 test/i18n/translate.service.test.js
bastion-3.2.1 test/i18n/translate.service.test.js
bastion-3.2.0 test/i18n/translate.service.test.js
bastion-3.1.0 test/i18n/translate.service.test.js
bastion-3.0.1 test/i18n/translate.service.test.js
bastion-3.0.0 test/i18n/translate.service.test.js
bastion-2.1.0 test/i18n/translate.service.test.js
bastion-2.0.4 test/i18n/translate.service.test.js
bastion-2.0.3 test/i18n/translate.service.test.js
bastion-2.0.2 test/i18n/translate.service.test.js
bastion-2.0.1 test/i18n/translate.service.test.js
bastion-2.0.0 test/i18n/translate.service.test.js
bastion-1.0.2 test/i18n/translate.service.test.js