functionfoundry
Advanced tools
Comparing version 0.6.2 to 0.6.3
{ | ||
"name": "functionfoundry", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"description": "Functions inspired by the spreadsheets", | ||
@@ -30,3 +30,2 @@ "main": "lib/index.js", | ||
"babel-preset-es2015": "^6.1.2", | ||
"babelify": "^7.2.0", | ||
"eslint": "^1.8.0", | ||
@@ -33,0 +32,0 @@ "gulp": "^3.9.0", |
@@ -10,3 +10,8 @@ // COND.js - | ||
return a; | ||
} else if (i === cases.length - 1 ) { | ||
} else if ( i === cases.length - 1 ) { | ||
if (i % 2 === 1) { | ||
return; // nothing found | ||
} | ||
// return the last item | ||
@@ -13,0 +18,0 @@ return b; |
@@ -7,5 +7,6 @@ import {COND} from '../src/COND'; | ||
test('COND', function(t) { | ||
t.plan(9); | ||
t.plan(10); | ||
t.equal( typeof COND, 'function' ); | ||
t.equal( typeof SWITCH, 'function' ); | ||
t.equal( COND( false, 1), undefined ); | ||
t.equal( COND( true, 1, false, 2, 3), 1 ); | ||
@@ -12,0 +13,0 @@ t.equal( COND( false, 1, true, 2, 3), 2 ); |
175256
10
5105