<reponame>DataScienceBootCamp2023/CCDP_final_deployment<filename>static/node_modules/temporary/test/generator.test.js<gh_stars>0/**
 * Temporary - The lord of tmp.
 *
 * Author: Veselin Todorov <upchh@example.com>
 * Licensed under the MIT License.
 */

/**
 * Dependencies.
 */
var generator = require('../lib/generator');
var detector = require('../lib/detector');
var should = require('chai').should();

describe('generator', function() {
  describe('name', function() {
    it('should unique generate name', function() {
      generator.name().should.be.ok;
    });
  });

  describe('build', function() {
    it('should build full names', function() {
      var tmp = detector.tmp();
      generator.build().indexOf(tmp).should.equal(0);
      generator.build('foo').indexOf(tmp + 'foo.').should.equal(0);
    });
  });
});
