text: 'use strict';
  
  var inquirer = require('inquirer2')();
  var toChoices = require('..')({type: 'list'});
  
  var question = toChoices('favorite color', [
    'red',
    'blue',
    'green'
  ]);
  console.log(question)
  inquirer.prompt([question], function(answer) {
    console.log('your favorite color is:', answer[question.name]);
  });
  