Skip to content

Commit

Permalink
test(coverage): improve test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
the-darc committed Nov 10, 2016
1 parent f4eabf9 commit a78b961
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
1 change: 1 addition & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ gulp.task('build', function(done) {
' * @license <%= pkg.license %>',
' */',
'(function (root, factory) {',
' /* istanbul ignore next */',
' if (typeof define === \'function\' && define.amd) {',
' // AMD. Register as an anonymous module.',
' define([], factory);',
Expand Down
4 changes: 1 addition & 3 deletions releases/br-validations.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @license MIT
*/
(function (root, factory) {
/* istanbul ignore next */
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define([], factory);
Expand Down Expand Up @@ -216,9 +217,6 @@ function validateDV(value, options) {
}

function validateIE(value, rule) {
if (rule.match && !rule.match.test(value)) {
return false;
}
for (var i = 0; i < rule.dvs.length; i++) {
// console.log('>> >> dv'+i);
if (!validateDV(value, rule.dvs[i])) {
Expand Down
2 changes: 1 addition & 1 deletion releases/br-validations.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a78b961

Please sign in to comment.