<commit_before>const {expect} = require('chai');

const s = require('../lib/spec');

const {isInteger} = s.utils;

describe('Test the form function', () => {
    before(() => {
        s.def('::a', isInteger);
    });

    it('should throw an error if spec doesn\'t exist', () => {
        expect(() => s.form('::foobar')).to.throw(Error, /Unable to resolve spec/);
    });<commit_msg>Create additional (dummy) test to fix test coverage<commit_after>const {expect} = require('chai');

const s = require('../lib/spec');

const {isInteger} = s.utils;

describe('Test the form function', () => {
    before(() => {
        s.def('::a', isInteger);
    });

    it('should return the form', () => {
        expect(s.form('::a')).to.eql([]);
    });
    
    it('should throw an error if spec doesn\'t exist', () => {
        expect(() => s.form('::foobar')).to.throw(Error, /Unable to resolve spec/);
    });
{'fraction_non_alphanumeric': 0.22787610619469026, 'fraction_numerical': 0.0, 'mean_word_length': 3.0582959641255605, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, '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': '4459259', 'n_tokens_mistral': 294, 'n_tokens_neox': 290, 'n_words': 72}