Skip to content

Commit f633dae

Browse files
committedNov 25, 2016
Remove NamedBase
1 parent 16084c6 commit f633dae

File tree

4 files changed

+1
-52
lines changed

4 files changed

+1
-52
lines changed
 

‎lib/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,3 @@ var yeoman = module.exports = function createEnv() {
3939

4040
// hoist up top level class the generator extend
4141
yeoman.Base = require('./base');
42-
yeoman.NamedBase = require('./named-base');

‎lib/named-base.js

-22
This file was deleted.

‎test/fixtures/mocha-generator-base/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
// var generators = require('yeoman-generators');
44
var generators = require('../../../');
55

6-
module.exports = generators.NamedBase.extend({
6+
module.exports = generators.Base.extend({
77
doStuff: function () {}
88
});

‎test/generators.js

-28
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,6 @@ describe('Generators module', function () {
2727
});
2828
});
2929

30-
describe('.generators', function () {
31-
it('should have a Base object to extend from', function () {
32-
assert.ok(generators.Base);
33-
});
34-
35-
it('should have a NamedBase object to extend from', function () {
36-
assert.ok(generators.NamedBase);
37-
});
38-
});
39-
4030
describe('generators.Base', function () {
4131
beforeEach(function () {
4232
this.env = generators();
@@ -54,22 +44,4 @@ describe('Generators module', function () {
5444
this.generator.emit('yay-o-man');
5545
});
5646
});
57-
58-
describe('generators.NamedBase', function () {
59-
before(function () {
60-
this.env = generators();
61-
this.generator = new generators.NamedBase(['namedArg'], {
62-
env: this.env,
63-
resolved: 'namedbase:test'
64-
});
65-
});
66-
67-
it('extend Base generator', function () {
68-
assert.ok(this.generator instanceof generators.Base);
69-
});
70-
71-
it('have a name property', function () {
72-
assert.equal(this.generator.name, 'namedArg');
73-
});
74-
});
7547
});

0 commit comments

Comments
 (0)
Please sign in to comment.