diff --git a/test/node/test-bower.js b/test/node/test-bower.js index cd40c589..6ceb10a4 100644 --- a/test/node/test-bower.js +++ b/test/node/test-bower.js @@ -60,6 +60,36 @@ describe('gulp-angular generator bower script', function () { allFonts(bootstrapMain); }); + it('should add fonts and css for bootstrap and scss prepro', function() { + generator.props = { + ui: { key: 'bootstrap' }, + bootstrapComponents: { key: 'official' }, + cssPreprocessor: { key: 'notnone', extension: 'scss' } + }; + generator.prepareBowerOverrides(); + var bootstrapMain = JSON.parse(generator.bowerOverrides)['bootstrap-sass-official'].main; + bootstrapMain.length.should.be.equal(7); + var first = bootstrapMain.shift(); + first.should.match(/bootstrap\.js/); + var second = bootstrapMain.shift(); + second.should.match(/_bootstrap\.scss/); + allFonts(bootstrapMain); + }); + + it('should add fonts and css for bootstrap and scss prepro', function() { + generator.props = { + ui: { key: 'bootstrap' }, + bootstrapComponents: { key: 'something' }, + cssPreprocessor: { key: 'notnone', extension: 'scss' } + }; + generator.prepareBowerOverrides(); + var bootstrapMain = JSON.parse(generator.bowerOverrides)['bootstrap-sass-official'].main; + bootstrapMain.length.should.be.equal(6); + var first = bootstrapMain.shift(); + first.should.match(/_bootstrap\.scss/); + allFonts(bootstrapMain); + }); + it('should add fonts and css for bootstrap and less as css prepro', function() { generator.props = { ui: { key: 'bootstrap' },