Initial import from local backup (Documents-Playground/pakerpale)
This commit is contained in:
19
node_modules/relative-time-format/modules/resolveLocale.test.js
generated
vendored
Normal file
19
node_modules/relative-time-format/modules/resolveLocale.test.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import resolveLocale from './resolveLocale';
|
||||
describe('resolveLocale', function () {
|
||||
it('should resolve locale', function () {
|
||||
resolveLocale("en-XX").should.equal("en");
|
||||
});
|
||||
it('should throw when "localeMatcher" option is not a valid one', function () {
|
||||
expect(function () {
|
||||
return resolveLocale("en", {
|
||||
localeMatcher: "eccentric"
|
||||
});
|
||||
}).to.throw('Invalid "localeMatcher" option');
|
||||
});
|
||||
it('should fall back to "lookup" when passed "best fit" "localeMatcher" option', function () {
|
||||
resolveLocale("en-XX", {
|
||||
localeMatcher: "best fit"
|
||||
}).should.equal("en");
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=resolveLocale.test.js.map
|
||||
Reference in New Issue
Block a user