'use strict';
var path = require('path');
var assert = require('yeoman-assert');
var helpers = require('yeoman-test');

describe('generator-enonic-xp:part', function () {
  before(function () {
    return helpers.run(path.join(__dirname, '../generators/part'))
      .withPrompts({partname: 'my-part', renderEngine: 'thymeleaf'})
      .toPromise();
  });

  it('creates files', function () {
    assert.file([
      'src/main/resources/site/parts/my-part/my-part.html',
      'src/main/resources/site/parts/my-part/my-part.js',
      'src/main/resources/site/parts/my-part/my-part.xml'
    ]);
  });
});

@@ -274,16 +274,25 @@
 rompts(%7B
+%0A        
 partname
@@ -303,16 +303,24 @@
 y-part',
+%0A       
  renderE
@@ -337,16 +337,48 @@
 ymeleaf'
+,%0A        fieldAdd: false%0A      
 %7D)%0A     

Fix test