gulp-prompt-spec.js 768 B

123456789101112131415161718192021
  1. var assert = require('assert');
  2. var proxyrequire = require('proxyquire');
  3. var gulpPrompt = proxyrequire('../index.js', {'inquirer':{}, 'event-stream':{}});
  4. /**
  5. * Simple test to ensure that the functions are still defined on main module
  6. */
  7. describe('gulp prompt unit tests', function () {
  8. describe('verify that the gulp prompt exists', function () {
  9. it('Should verify that the module exists', function (){
  10. assert.notEqual(gulpPrompt, undefined);
  11. });
  12. it('Should verify that the package contains a function prompt', function (){
  13. assert.notEqual(gulpPrompt.prompt, undefined);
  14. });
  15. it('Should verify that the package contains a function confirm', function (){
  16. assert.notEqual(gulpPrompt.confirm, undefined);
  17. });
  18. });
  19. });