Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should return rules for "cardinal", "en"', function() {
var en = MakePlural.getRules('cardinal', 'en')
expect(en).to.be.an('object')
expect(en).to.have.keys('pluralRule-count-one', 'pluralRule-count-other')
})
it('should return the same rules for "cardinal", "EN"', function() {
it('should return the same rules for "cardinal", "EN"', function() {
var en = MakePlural.getRules('cardinal', 'en')
var EN = MakePlural.getRules('cardinal', 'EN')
expect(EN).to.equal(en)
})
})
it('should return the same rules for "cardinal", "EN"', function() {
var en = MakePlural.getRules('cardinal', 'en')
var EN = MakePlural.getRules('cardinal', 'EN')
expect(EN).to.equal(en)
})
})
expect(() => MakePlural.getRules('nonesuch', 'xx')).to.throw()
expect(() => MakePlural.getRules('cardinal', 'xx')).to.not.throw()
expect(() => MakePlural.getRules('cardinal', 'xx')).to.not.throw()
})