Skip to content

Commit ca69517

Browse files
author
tunnckoCore
committed
improve coverage to 100%
1 parent 2b68dda commit ca69517

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

fixtures.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
module.exports.fixtureOne = function() {
33
return {
44
fn: function testing(cmd, args, opts) {
5+
/* istanbul ignore next */
56
var obj = {
67
maybe: 'yea'
78
};
9+
/* istanbul ignore next */
810
var come = function come() { return true; };
911

12+
/* istanbul ignore next */
1013
return {
1114
only: 'one',
1215
command: cmd,
@@ -21,14 +24,17 @@ module.exports.fixtureOne = function() {
2124
module.exports.fixtureTwo = function() {
2225
return {
2326
fn: function typeOf(val) {
27+
/* istanbul ignore next */
2428
if (typeof val !== 'object') {
2529
return typeof val;
2630
}
2731

32+
/* istanbul ignore next */
2833
if (Array.isArray(val)) {
2934
return 'array';
3035
}
3136

37+
/* istanbul ignore next */
3238
return {}.toString(val).slice(8, -1).toLowerCase();
3339
},
3440
body: '\n if (typeof val !== \'object\') {\n return typeof val;\n }\n\n if (Array.isArray(val)) {\n return \'array\';\n }\n\n return {}.toString(val).slice(8, -1).toLowerCase();\n '

0 commit comments

Comments
 (0)