<commit_before>import FragmentAnchor from '../dom-anchor-fragment'

describe('FragmentAnchor', () => {
  before(() => {
    fixture.setBase('test/fixtures');
  });

  beforeEach(() => {
    fixture.load('test.html');
  });

  afterEach(() => {
    fixture.cleanup();
  });

  it('is a function', () => {
    assert.isFunction(FragmentAnchor);
  });

  it('requires an id argument to the constructor', () => {
    let construct = () => new FragmentAnchor();
    assert.throws(construct,'required parameter');
    let instance = new FragmentAnchor('foo');
    assert.instanceOf(instance, FragmentAnchor);
  });
<commit_msg>Wrap constructor tests in a describe block<commit_after>import FragmentAnchor from '../dom-anchor-fragment'

describe('FragmentAnchor', () => {
  before(() => {
    fixture.setBase('test/fixtures');
  });

  beforeEach(() => {
    fixture.load('test.html');
  });

  afterEach(() => {
    fixture.cleanup();
  });

  describe('constructor', () => {
    it('is a function', () => {
      assert.isFunction(FragmentAnchor);
    });

    it('requires an id argument to the constructor', () => {
      let construct = () => new FragmentAnchor();
      assert.throws(construct,'required parameter');
      let instance = new FragmentAnchor('foo');
      assert.instanceOf(instance, FragmentAnchor);
    });
  });

{'fraction_non_alphanumeric': 0.18660647103085026, 'fraction_numerical': 0.0, 'mean_word_length': 3.586206896551724, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 18, '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': '5504070', 'n_tokens_mistral': 387, 'n_tokens_neox': 372, 'n_words': 75}