<commit_before>var expect = require('chai').expect;

var clean = require('./util').clean;
var compile = require('./util').compile;
var describeWP = require('./util').describeWP;
var itCompiles = require('./util').itCompiles;
var itCompilesTwice = require('./util').itCompilesTwice;
var itCompilesChange = require('./util').itCompilesChange;
var itCompilesHardModules = require('./util').itCompilesHardModules;

describeWP(3)('plugin webpack 3 use', function() {

  itCompilesTwice('plugin-concatenated-module');
  itCompilesHardModules('plugin-concatenated-module', function(out) {
    var hardModules = [];
    out.run1.compilation.modules.forEach(function(module) {
      if (module.modules) {
        expect(module.modules.length).to.equal(2);
        module.modules.forEach(function(usedModule) {
          expect(usedModule.isHard).to.be.ok;
          expect(usedModule.isHard()).to.equal(true);
        });
      }<commit_msg>Test run2 of plugin-concatenated-module<commit_after>var expect = require('chai').expect;

var clean = require('./util').clean;
var compile = require('./util').compile;
var describeWP = require('./util').describeWP;
var itCompiles = require('./util').itCompiles;
var itCompilesTwice = require('./util').itCompilesTwice;
var itCompilesChange = require('./util').itCompilesChange;
var itCompilesHardModules = require('./util').itCompilesHardModules;

describeWP(3)('plugin webpack 3 use', function() {

  itCompilesTwice('plugin-concatenated-module');
  itCompilesHardModules('plugin-concatenated-module', function(out) {
    out.run2.compilation.modules.forEach(function(module) {
      if (module.modules) {
        expect(module.modules.length).to.equal(2);
        module.modules.forEach(function(usedModule) {
          expect(usedModule.isHard).to.be.ok;
          expect(usedModule.isHard()).to.equal(true);
        });
      }
{'fraction_non_alphanumeric': 0.15987124463519314, 'fraction_numerical': 0.004828326180257511, 'mean_word_length': 4.453216374269005, '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': '5801631', 'n_tokens_mistral': 560, 'n_tokens_neox': 557, 'n_words': 83}