<commit_before>import should from 'should'
import * as constants from './endpoints'

describe('constants/endpoints', () => {
  it('should not export DEFAULTS', (done) => {
    constants.should.not.have.property('DEFAULTS')
    should.not.exist(constants.DEFAULTS)
    done()
  })
})<commit_msg>Test defaults/endpoint keys exist in ENDPOINTS constants<commit_after>import should from 'should'
import * as constants from './endpoints'

describe('constants/endpoints', () => {
  describe('exports', () => {
    it('should not export DEFAULTS', (done) => {
      constants.should.not.have.property('DEFAULTS')
      should.not.exist(constants.DEFAULTS)
      done()
    })

    it('should export objects with endpoint & defaults keys', (done) => {
      Object.keys(constants).every(k => {
        let v = constants[k]
        return v.hasOwnProperty('endpoint') && v.hasOwnProperty('defaults')
      }).should.be.true()
      done()
    })

  })
})
{'fraction_non_alphanumeric': 0.16084656084656085, 'fraction_numerical': 0.0, 'mean_word_length': 3.570048309178744, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5914610', 'n_tokens_mistral': 277, 'n_tokens_neox': 288, 'n_words': 60}