'use strict';
import GenBase from '../genBase';

export default class Generator extends GenBase {
  constructor(...args) {
    super(...args);
  }

  get prompting() {
    return function () {
      this.askForModuleName();
    };
  }

  get writing() {
    return function () {
      const done = this.async();

      Promise.all([
        this.copySrcFile('provider'),
        this.copyUnitTest('provider')
      ]).then(() => {
        done();
      });
    };
  }
}

@@ -250,32 +250,38 @@
 () %7B%0A    return 
+async 
 function () %7B%0A  
@@ -318,16 +318,22 @@
 %0A%0A      
+await 
 Promise.
@@ -426,24 +426,11 @@
   %5D)
-.then(() =%3E %7B%0A  
+;%0A%0A
     
@@ -443,18 +443,8 @@
 ();%0A
-      %7D);%0A
     

use async/await