How to use the make-plural-compiler/src/compiler.ordinals 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 handle global options', function() {
      MakePlural.ordinals = true
      var mp = new MakePlural('en').compile()
      expect(mp(2, true)).to.equal('two')
      MakePlural.ordinals = false
    })
  })