yeoman / generator-polymer

Scaffold out a Polymer project
http://polymer-project.org
926 stars 149 forks source link

added error and, fixed tests to yo polymer:el and corrected yo polyme… #237

Closed luxedo closed 8 years ago

luxedo commented 8 years ago

The elements.html file was being created inside

before(function (done) {
      helpers.run(path.join(__dirname, '../app'))

but was deleted inside:

it('creates expected files', function () {
      var expected = [
        'app/elements/my-foo/my-foo.html'
      ];
      assert.file(expected);
    });

raising the new error in el/index.js

To address the issue, instead of creating the /app data using the helper, I suggest to create a dummy elements.html file just before the tests begin

.on('ready', function(generator){
          fs.createFileSync(path.join(__dirname, './tmp/app/elements/elements.html'));
        })