Skip to content

Commit d8ead28

Browse files
author
Mehdy Dara
committed
Complete test coverage
1 parent e2f6d8b commit d8ead28

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

test/template/test-bower.js

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,22 @@ describe('gulp-angular bower template', function () {
134134
var result = bower(model);
135135
result.should.not.match(/bootstrap/);
136136
result.should.not.match(/foundation/);
137-
result.should.not.match(/material/);
137+
result.should.not.match(/angular-material/);
138+
result.should.not.match(/material-design-lite/);
138139

139140
model.props.ui.key = 'angular-material';
140141
result = bower(model);
141-
result.should.match(/material/);
142+
result.should.match(/angular-material/);
142143
result.should.not.match(/boostrap/);
143144
result.should.not.match(/foundation/);
145+
result.should.not.match(/material-design-lite/);
146+
147+
model.props.ui.key = 'material-design-lite';
148+
result = bower(model);
149+
result.should.match(/material-design-lite/);
150+
result.should.not.match(/boostrap/);
151+
result.should.not.match(/angular-material/);
152+
result.should.not.match(/foundation/);
144153

145154
model.props.ui.key = 'bootstrap';
146155
model.props.bootstrapComponents.key = 'ui-bootstrap';
@@ -149,30 +158,34 @@ describe('gulp-angular bower template', function () {
149158
result.should.match(/angular-bootstrap/);
150159
result.should.not.match(/"bootstrap"/);
151160
result.should.not.match(/foundation/);
152-
result.should.not.match(/material/);
161+
result.should.not.match(/angular-material/);
162+
result.should.not.match(/material-design-lite/);
153163

154164
model.props.bootstrapComponents.key = 'angular-strap';
155165
model.props.cssPreprocessor.extension = 'less';
156166
result = bower(model);
157167
result.should.match(/"bootstrap"/);
158168
result.should.match(/angular-strap/);
159169
result.should.not.match(/foundation/);
160-
result.should.not.match(/material/);
170+
result.should.not.match(/angular-material/);
171+
result.should.not.match(/material-design-lite/);
161172

162173
model.props.bootstrapComponents.key = 'none';
163174
model.props.cssPreprocessor.extension = 'styl';
164175
result = bower(model);
165176
result.should.match(/bootstrap-stylus/);
166177
result.should.not.match(/foundation/);
167-
result.should.not.match(/material/);
178+
result.should.not.match(/angular-material/);
179+
result.should.not.match(/material-design-lite/);
168180

169181
model.props.ui.key = 'foundation';
170182
model.props.foundationComponents.key = 'angular-foundation';
171183
result = bower(model);
172184
result.should.match(/"foundation"/);
173185
result.should.match(/angular-foundation/);
174186
result.should.not.match(/bootstrap/);
175-
result.should.not.match(/material/);
187+
result.should.not.match(/angular-material/);
188+
result.should.not.match(/material-design-lite/);
176189
});
177190

178191
it('should add traceur runtime when needed', function() {

0 commit comments

Comments
 (0)