Skip to content
This repository has been archived by the owner on Sep 13, 2020. It is now read-only.

Commit

Permalink
Remove configure mock expectation due to configure is mandatory to be…
Browse files Browse the repository at this point in the history
… completed in i18n 0.6 .
  • Loading branch information
cliffano committed Feb 1, 2016
1 parent bad61d2 commit 6bab005
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions test/bagoftext.js
Expand Up @@ -37,23 +37,11 @@ buster.testCase('text - initLocales', {
'should not set locale when environment variable is not available': function () {
this.mockFs.expects('readdirSync').withExactArgs('conf/locales/').returns(['en.json', 'id.json']);
this.stub(process, 'env', { LANG: undefined });
this.mockI18n.expects('configure').withExactArgs({
locales: ['en', 'id'],
defaultLocale: 'id',
directory: 'conf/locales/',
updateFiles: false
});
bag.initLocales('somebasedir', { defaultLocale: 'id' });
},
'should not set locale when environment variable locale is not available': function () {
this.mockFs.expects('readdirSync').withExactArgs('conf/locales/').returns(['id.json']);
this.stub(process, 'env', { LANG: 'en_AU.UTF-8' });
this.mockI18n.expects('configure').withExactArgs({
locales: ['id'],
defaultLocale: 'id',
directory: 'conf/locales/',
updateFiles: false
});
bag.initLocales('somebasedir', { defaultLocale: 'id' });
}
});
Expand Down

0 comments on commit 6bab005

Please sign in to comment.