| 3 | const should = require('should') |
| 4 | |
| 5 | const testApi = (instance) => { |
| 6 | should.equal(typeof instance.configure, 'function') |
| 7 | should.equal(typeof instance.init, 'function') |
| 8 | should.equal(typeof instance.__, 'function') |
| 9 | should.equal(typeof instance.__mf, 'function') |
| 10 | should.equal(typeof instance.__l, 'function') |
| 11 | should.equal(typeof instance.__h, 'function') |
| 12 | should.equal(typeof instance.__n, 'function') |
| 13 | should.equal(typeof instance.setLocale, 'function') |
| 14 | should.equal(typeof instance.getLocale, 'function') |
| 15 | should.equal(typeof instance.getCatalog, 'function') |
| 16 | should.equal(typeof instance.getLocales, 'function') |
| 17 | should.equal(typeof instance.addLocale, 'function') |
| 18 | should.equal(typeof instance.removeLocale, 'function') |
| 19 | } |
| 20 | |
| 21 | describe('exported constructor', () => { |
| 22 | it('should setup independend instances', () => { |