<commit_before>'use strict';

const chai = require('chai');

const plate = require('../index');

const expect = chai.expect;

describe('Those postal codes', function() {
  it('should be valid', function() {
    expect(plate.validate('10188')).to.be.true;
    expect(plate.validate('49080')).to.be.true;
  });
});

describe('Those postal codes', function() {
  it('should be invalid', function() {
    expect(plate.validate('90000')).to.be.false;
    expect(plate.validate('00000')).to.be.false;
    expect(plate.validate('1abcd')).to.be.false;
    expect(plate.validate('123456')).to.be.false;
    expect(plate.validate('1234')).to.be.false;
    expect(plate.validate('1 2 3 4')).to.be.false;
  });
});

describe('Those dirty postal codes', function() {
  it('should be cleaned', function() {
    expect(plate.clean(' 123 45 ')).to.equal('12345');
  });
});<commit_msg>Fix wrong naming in tests<commit_after>'use strict';

const chai = require('chai');

const postalCode = require('../index');

const expect = chai.expect;

describe('Those postal codes', function() {
  it('should be valid', function() {
    expect(postalCode.validate('10188')).to.be.true;
    expect(postalCode.validate('49080')).to.be.true;
  });
});

describe('Those postal codes', function() {
  it('should be invalid', function() {
    expect(postalCode.validate('90000')).to.be.false;
    expect(postalCode.validate('00000')).to.be.false;
    expect(postalCode.validate('1abcd')).to.be.false;
    expect(postalCode.validate('123456')).to.be.false;
    expect(postalCode.validate('1234')).to.be.false;
    expect(postalCode.validate('1 2 3 4')).to.be.false;
  });
});

describe('Those dirty postal codes', function() {
  it('should be cleaned', function() {
    expect(postalCode.clean(' 123 45 ')).to.equal('12345');
  });
});
{'fraction_non_alphanumeric': 0.20666666666666667, 'fraction_numerical': 0.05, 'mean_word_length': 4.610591900311526, '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': '3044441', 'n_tokens_mistral': 675, 'n_tokens_neox': 597, 'n_words': 106}