Skip to content

Commit

Permalink
test: cover missing filter arg in obj-filter (#1467)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinCsl authored and bcoe committed Oct 29, 2019
1 parent cb0396f commit 10f10ee
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/obj-filter.js
@@ -0,0 +1,16 @@
'use strict'
/* global describe, it */

const objFilter = require('../lib/obj-filter')

require('chai').should()

describe('ObjFilter', () => {
it('returns a new reference to the original object if no filter function is given', () => {
const original = { foo: 'bar', baz: 'foo' }
const result = objFilter(original)

original.should.not.equal(result)
original.should.deep.equal(result)
})
})

0 comments on commit 10f10ee

Please sign in to comment.