'use strict';
import path from 'path';

var path = require('path');
var assert = require('yeoman-assert');
var helpers = require('yeoman-generator').test;

describe('generator-ionic-webpack-es-2015:app', function () {
  before(function (done) {
    helpers.run(path.join(__dirname, '../generators/app'))
      .withOptions({someOption: true})
      .withPrompts({someAnswer: true})
      .on('end', done);
  });

  it('creates files', function () {
    assert.file([
      'dummyfile.txt'
    ]);
  });
});

import path from 'path';
import assert from 'yeoman-assert';
import { test } from 'yeoman-generator';

describe('generator-ionic-webpack-es-2015:app', ()=> {
  before(function (done) {
    test.run(path.join(__dirname, '../generators/app'))
      .withOptions({someOption: true})
      .withPrompts({someAnswer: true})
      .on('end', done);
  });

  it('creates files', ()=> {
    assert.file([
      'dummyfile.txt'
    ]);
  });
});

rewrite the test in es2015