<NME> ember-cli-build.js
<BEF> /* eslint-env node */
'use strict';

const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');

module.exports = function(defaults) {
  let app = new EmberAddon(defaults, {
    eslint: {
      testGenerator: 'mocha',
    },
  });

  /*
    This build file specifies the options for the dummy test app of this
    addon, located in `/tests/dummy`
    This build file does *not* influence how the addon or the app using it
    behave. You most likely want to be modifying `./index.js` or app's build file
  */

  return app.toTree();
};
    outputFile: '/ember-mocha.js'
  });

  lib = eslint(lib, { testGenerator: 'mocha' });
  tests = eslint(tests, { testGenerator: 'mocha' });

  var mainWithTests = mergeTrees([deps, lib, tests]);
  mainWithTests = concat(compileES6(mainWithTests), {
    inputFiles: ['**/*.js'],
    outputFile: '/assets/ember-mocha-tests.amd.js'

<MSG> Merge pull request #101 from Turbo87/fix-tests

Fix tests by using the ESLint nodes correctly
<DFF> @@ -93,10 +93,10 @@ module.exports = function(defaults) {
     outputFile: '/ember-mocha.js'
   });
 
-  lib = eslint(lib, { testGenerator: 'mocha' });
-  tests = eslint(tests, { testGenerator: 'mocha' });
+  var eslintLib = eslint(lib, { testGenerator: 'mocha' });
+  var eslintTests = eslint(tests, { testGenerator: 'mocha' });
 
-  var mainWithTests = mergeTrees([deps, lib, tests]);
+  var mainWithTests = mergeTrees([deps, lib, tests, eslintLib, eslintTests]);
   mainWithTests = concat(compileES6(mainWithTests), {
     inputFiles: ['**/*.js'],
     outputFile: '/assets/ember-mocha-tests.amd.js'

Merge pull request #101 from Turbo87/fix-tests