Code coverage report for src/test/module-install.js

Statements: 100% (8 / 8)      Branches: 100% (0 / 0)      Functions: 100% (2 / 2)      Lines: 100% (8 / 8)      Ignored: none     

All files » src/test/ » module-install.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 171 1 1   1 1 1       1 1          
gt.module('module install');
var install = require('../module-install');
var path = require('path');
 
gt.async('install into tmp folder', function () {
  gt.func(install, 'install is a function');
  var options = {
    name: 'lodash',
    prefix: '/tmp/lodash-prefix/'
  };
  install(options).then(function () {
    return path.join(options.prefix, '/lib/node_modules/' + options.name);
  })
  .finally(gt.start)
  .done();
});