Skip to content

Commit baeff6c

Browse files
committed
chore(gen): remove migration code and test
1 parent ad26738 commit baeff6c

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

Diff for: app/index.js

-9
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,6 @@ var AngularFullstackGenerator = yeoman.generators.Base.extend({
6161
jasmine: true
6262
});
6363

64-
// NOTE: temp(?) fix for #403
65-
if(typeof this.filters.oauth === 'undefined') {
66-
var strategies = Object.keys(this.filters).filter(function(key) {
67-
return key.match(/Auth$/) && this.filters[key];
68-
}.bind(this));
69-
70-
if(strategies.length) this.filters.oauth = true;
71-
}
72-
7364
this.config.set('filters', this.filters);
7465
this.config.forceSave();
7566

Diff for: test/test-file-creation.js

-22
Original file line numberDiff line numberDiff line change
@@ -467,28 +467,6 @@ describe('angular-fullstack generator', function () {
467467
});
468468
});
469469

470-
it('should add oauth option if existing config had oauth strategy selected', function(done) {
471-
this.timeout(60000);
472-
copySync(__dirname + '/fixtures/.yo-rc.json', __dirname + '/temp/.yo-rc.json');
473-
var gen = helpers.createGenerator('angular-fullstack:app', [
474-
'../../app',
475-
'../../endpoint',
476-
[
477-
helpers.createDummyGenerator(),
478-
'ng-component:app'
479-
]
480-
]);
481-
gen.options['skip-install'] = true;
482-
helpers.mockPrompt(gen, {
483-
skipConfig: true
484-
});
485-
gen.run(function () {
486-
var yoConfig = require(__dirname + '/temp/.yo-rc.json');
487-
expect(yoConfig['generator-angular-fullstack'].filters.oauth).to.be.true;
488-
done();
489-
});
490-
});
491-
492470
it('should generate expected files', function (done) {
493471
gen.run(function () {
494472
helpers.assertFile(genFiles(defaultOptions));

0 commit comments

Comments
 (0)