diff --git a/test/index.html b/test/index.html index 688cf0414..d97f2a6bd 100644 --- a/test/index.html +++ b/test/index.html @@ -163,8 +163,8 @@ - + diff --git a/test/spec/lib/locale.js b/test/spec/lib/locale.js index 3228aa99b..8b4c355fb 100644 --- a/test/spec/lib/locale.js +++ b/test/spec/lib/locale.js @@ -18,6 +18,10 @@ describe("locale", function() { expect(t('test')).to.equal('test'); }); + it("supports a default option", function() { + expect(t('nonesuch', {default: 'default'})).to.equal('default'); + }); + it("falls back to en", function() { locale._current = '__'; expect(t('test')).to.equal('test');