From d8ead28af23266bc7975be433e4deb53bdd70db0 Mon Sep 17 00:00:00 2001 From: Mehdy Dara Date: Fri, 28 Aug 2015 18:16:17 +0200 Subject: [PATCH] Complete test coverage --- test/template/test-bower.js | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/test/template/test-bower.js b/test/template/test-bower.js index ce2e0450..e78e01ca 100644 --- a/test/template/test-bower.js +++ b/test/template/test-bower.js @@ -134,13 +134,22 @@ describe('gulp-angular bower template', function () { var result = bower(model); result.should.not.match(/bootstrap/); result.should.not.match(/foundation/); - result.should.not.match(/material/); + result.should.not.match(/angular-material/); + result.should.not.match(/material-design-lite/); model.props.ui.key = 'angular-material'; result = bower(model); - result.should.match(/material/); + result.should.match(/angular-material/); result.should.not.match(/boostrap/); result.should.not.match(/foundation/); + result.should.not.match(/material-design-lite/); + + model.props.ui.key = 'material-design-lite'; + result = bower(model); + result.should.match(/material-design-lite/); + result.should.not.match(/boostrap/); + result.should.not.match(/angular-material/); + result.should.not.match(/foundation/); model.props.ui.key = 'bootstrap'; model.props.bootstrapComponents.key = 'ui-bootstrap'; @@ -149,7 +158,8 @@ describe('gulp-angular bower template', function () { result.should.match(/angular-bootstrap/); result.should.not.match(/"bootstrap"/); result.should.not.match(/foundation/); - result.should.not.match(/material/); + result.should.not.match(/angular-material/); + result.should.not.match(/material-design-lite/); model.props.bootstrapComponents.key = 'angular-strap'; model.props.cssPreprocessor.extension = 'less'; @@ -157,14 +167,16 @@ describe('gulp-angular bower template', function () { result.should.match(/"bootstrap"/); result.should.match(/angular-strap/); result.should.not.match(/foundation/); - result.should.not.match(/material/); + result.should.not.match(/angular-material/); + result.should.not.match(/material-design-lite/); model.props.bootstrapComponents.key = 'none'; model.props.cssPreprocessor.extension = 'styl'; result = bower(model); result.should.match(/bootstrap-stylus/); result.should.not.match(/foundation/); - result.should.not.match(/material/); + result.should.not.match(/angular-material/); + result.should.not.match(/material-design-lite/); model.props.ui.key = 'foundation'; model.props.foundationComponents.key = 'angular-foundation'; @@ -172,7 +184,8 @@ describe('gulp-angular bower template', function () { result.should.match(/"foundation"/); result.should.match(/angular-foundation/); result.should.not.match(/bootstrap/); - result.should.not.match(/material/); + result.should.not.match(/angular-material/); + result.should.not.match(/material-design-lite/); }); it('should add traceur runtime when needed', function() {