tastypie
Version:
Tastypie is a webservice API framework for Node.js based on Django's Tastypie Framework. It provides a convenient, yet powerful and highly customizable, abstraction for creating REST-style interfaces
22 lines (13 loc) • 419 B
JavaScript
;
var expect = require("expect.js")
var pick = require('../../array/pick')
describe('Array', function(){
describe('pick', function(){
it('should pick a value that is not null from the array', function(){
expect(pick([null, undefined, true, 1])).to.be(true)
})
it('should return null', function(){
expect(pick([])).to.be(null)
})
})
})