UNPKG

generator-angular-eggs

Version:

Angular 1.5, Angular Component Router, Bootstrap v4(alpha) and TingoDB(like MongoDB) with an Express server

60 lines (52 loc) 1.64 kB
'use strict'; var path = require('path'); var helpers = require('yeoman-generator').test; var assert = require('yeoman-assert'); describe('bootstrap', function () { describe('general', function () { before(function (done) { helpers.run(path.join(__dirname, '../app')) .inDir(path.join(__dirname, '.tmp')) .withOptions({'skip-install': true}) .withPrompts({features: [ 'includeBootstrap' ]}) .on('end', done); }); it('adds the Bootstrap dependency', function () { assert.fileContent('bower.json', 'bootstrap'); }); it('doesn\'t explicitly add the jQuery dependency', function () { assert.noFileContent('bower.json', 'jquery'); }); it('adds the HTML description', function () { assert.fileContent('app/index.html', 'bootstrap'); }); }); describe('with Sass', function () { before(function (done) { helpers.run(path.join(__dirname, '../app')) .inDir(path.join(__dirname, '.tmp')) .withOptions({'skip-install': true}) .withPrompts({features: [ 'includeSass', 'includeBootstrap' ]}) .on('end', done); }); }); describe('without Sass', function () { before(function (done) { helpers.run(path.join(__dirname, '../app')) .inDir(path.join(__dirname, '.tmp')) .withOptions({'skip-install': true}) .withPrompts({features: [ 'includeBootstrap' ]}) .on('end', done); }); it('uses regular Bootstrap', function () { assert.fileContent('bower.json', '"bootstrap"'); }); }); });