<commit_before>var purespec = require('..')

describe('dsl', () => {
  describe('()', () => {
    describe.skip('without a target', () => {
      var oldGlobal = global
      beforeEach(() => { global = {} }) // eslint-disable-line
      afterEach(() => { global = oldGlobal }) // eslint-disable-line

      it('assigns properties to the global object', () => {
        purespec.dsl()
        expect(Object.keys(global)).not.toHaveLength(0)
      })
    })

    describe('given a target', () => {
      var target = {}

      it('assigns properties to the given target', () => {
        purespec.dsl(target)
        expect(Object.keys(target)).not.toHaveLength(0)
      })
    })
  })

  describe('.matchers()', () => {
    it('returns an Object of matcher shortcuts', () => {
      var matchers = Object.keys(purespec.matchers)
                           .map(key => purespec.matchers[key])
      var dslMatchers = purespec.dsl.matchers()
      expect(dslMatchers).toBeInstanceOf(Object)
      expect(Object.keys(dslMatchers)).not.toHaveLength(0)
      Object.keys(dslMatchers).forEach(key => {<commit_msg>Remove purespec.dsl() test for no arguments<commit_after>var purespec = require('..')

describe('dsl', () => {
  describe('()', () => {
    var target = {}

    it('assigns properties to the given target', () => {
      purespec.dsl(target)
      expect(Object.keys(target)).not.toHaveLength(0)
    })
  })

  describe('.matchers()', () => {
    it('returns an Object of matcher shortcuts', () => {
      var matchers = Object.keys(purespec.matchers)
                           .map(key => purespec.matchers[key])
      var dslMatchers = purespec.dsl.matchers()
      expect(dslMatchers).toBeInstanceOf(Object)
      expect(Object.keys(dslMatchers)).not.toHaveLength(0)
      Object.keys(dslMatchers).forEach(key => {
{'fraction_non_alphanumeric': 0.17324561403508773, 'fraction_numerical': 0.0027412280701754384, 'mean_word_length': 2.7863070539419086, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 22, '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': '6670169', 'n_tokens_mistral': 588, 'n_tokens_neox': 576, 'n_words': 95}