<commit_before>const FlintPlugin = require('../../../server/utils/FlintPlugin');
const expect = require('chai').expect;

describe('FlintPlugin', function () {
  class MyPlugin extends FlintPlugin {
    static get uid() { return 'my-plugin'; }
  }

  it('returns the correct uid', function () {
    return expect(MyPlugin.uid).to.equal('my-plugin');
  });

  it('returns the correct title', function () {
    return expect(MyPlugin.title).to.equal('');
  });

  it('returns the correct name', function () {
    return expect(MyPlugin.name).to.equal('MyPlugin');
  });

  it('returns the correct icon', function () {
    return expect(MyPlugin.icon).to.be.a('string');
  });

  it('returns the correct model', function () {<commit_msg>Better FlintPlugin coverage<commit_after>const FlintPlugin = require('../../../server/utils/FlintPlugin');
const expect = require('chai').expect;

describe('FlintPlugin', function () {
  class MyPlugin extends FlintPlugin {
    static get uid() { return 'my-plugin'; }
  }

  class MyBadPlugin extends FlintPlugin {}

  it('returns the correct uid', function () {
    return expect(MyPlugin.uid).to.equal('my-plugin');
  });

  it('returns false when a uid has not been set', function () {
    return expect(MyBadPlugin.uid).to.be.false;
  });

  it('returns the correct title', function () {
    return expect(MyPlugin.title).to.equal('');
  });

  it('returns the correct name', function () {
    return expect(MyPlugin.name).to.equal('MyPlugin');
  });

  it('returns the correct icon', function () {
    return expect(MyPlugin.icon).to.be.a('string');
  });

  it('returns the correct model', function () {
{'fraction_non_alphanumeric': 0.17346317711503348, 'fraction_numerical': 0.0, 'mean_word_length': 3.9667673716012084, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3607282', 'n_tokens_mistral': 496, 'n_tokens_neox': 474, 'n_words': 118}