Sha256: a294554c56a26b37fcd5cb6c4fbdbd778534e96dd4cdf0957c3fd35f83c59acb

Contents?: true

Size: 731 Bytes

Versions: 42

Compression:

Stored size: 731 Bytes

Contents

var I18n = require("../../app/assets/javascripts/i18n");

describe("Defaults", function(){
  beforeEach(function(){
    I18n.reset();
  });

  it("sets the default locale", function(){
    expect(I18n.defaultLocale).toEqual("en");
  });

  it("sets current locale", function(){
    expect(I18n.locale).toEqual("en");
  });

  it("sets default separator", function(){
    expect(I18n.defaultSeparator).toEqual(".");
  });

  it("sets fallback", function(){
    expect(I18n.fallbacks).toEqual(false);
  });

  it("set empty translation prefix", function(){
    expect(I18n.missingTranslationPrefix).toEqual('');
  });

  it("sets default missingBehaviour", function(){
    expect(I18n.missingBehaviour).toEqual('message');
  });
});

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
i18n-js-3.9.2 spec/js/defaults.spec.js
i18n-js-3.9.1 spec/js/defaults.spec.js
i18n-js-3.9.0 spec/js/defaults.spec.js
i18n-js-3.8.4 spec/js/defaults.spec.js
i18n-js-3.8.3 spec/js/defaults.spec.js
i18n-js-3.8.2 spec/js/defaults.spec.js
i18n-js-3.8.1 spec/js/defaults.spec.js
i18n-js-3.8.0 spec/js/defaults.spec.js
i18n-js-3.7.1 spec/js/defaults.spec.js
i18n-js-3.7.0 spec/js/defaults.spec.js
i18n-js-3.6.0 spec/js/defaults.spec.js
i18n-js-3.5.1 spec/js/defaults.spec.js
i18n-js-3.5.0 spec/js/defaults.spec.js
i18n-js-3.4.2 spec/js/defaults.spec.js
i18n-js-3.4.1 spec/js/defaults.spec.js
i18n-js-3.4.0 spec/js/defaults.spec.js
i18n-js-3.3.0 spec/js/defaults.spec.js
i18n-js-3.2.3 spec/js/defaults.spec.js
i18n-js-3.2.2 spec/js/defaults.spec.js
i18n-js-3.2.1 spec/js/defaults.spec.js