How to use the make-plural-compiler/src/compiler.getRules function in make-plural-compiler

To help you get started, we’ve selected a few make-plural-compiler examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github eemeli / make-plural / test / compiler.js View on Github external
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() {
github eemeli / make-plural / test / compiler.js View on Github external
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)
    })
  })
github eemeli / make-plural / test / compiler.js View on Github external
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)
    })
  })
github eemeli / make-plural / test / compiler.js View on Github external
      expect(() => MakePlural.getRules('nonesuch', 'xx')).to.throw()
      expect(() => MakePlural.getRules('cardinal', 'xx')).to.not.throw()
github eemeli / make-plural / test / compiler.js View on Github external
      expect(() => MakePlural.getRules('cardinal', 'xx')).to.not.throw()
    })