<commit_before>import { expect } from 'chai';

describe('declaration', () => {

  let mod = require('../../../lib/code-gen');

  describe('ElementDeclaration', () => {
    describe('js', () => {
      it('returns a custom element declaration', () => {
        let d = new mod.ElementDeclaration('my-tag');
        expect(d.js).to.eql(`import MyTag from 'my-tag';\ncustomElements.define('my-tag', MyTag);`);
      });
    });
  });
});<commit_msg>chore: fix test<commit_after>import { expect } from 'chai';

describe('declaration', () => {
  let mod = require('../../../lib/code-gen');

  describe('ElementDeclaration', () => {
    describe('js', () => {
      it('returns a custom element declaration', () => {
        let d = new mod.ElementDeclaration('my-tag');
        expect(d.js).to.include(`customElements.define('my-tag', MyTag);`);
      });
    });
  });
});
{'fraction_non_alphanumeric': 0.2350230414746544, 'fraction_numerical': 0.0, 'mean_word_length': 3.07981220657277, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '3724475', 'n_tokens_mistral': 272, 'n_tokens_neox': 268, 'n_words': 47}