Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
try to trigger all code path for Record filter
  • Loading branch information
sledorze committed Feb 10, 2019
commit fe11e1339a02b9f1dc1ca80d851b57ca08894f53
4 changes: 4 additions & 0 deletions test/Record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ describe('Record', () => {
const actual = R.filter(y, isNumber)
assert.deepStrictEqual(actual, { a: 1 })

const z: Record<string, string | number> = { b: 1, a: 'foo' }
const actual2 = R.filter(z, isNumber)
assert.deepStrictEqual(actual2, { b: 1 })

assert.strictEqual(R.filter(y, _ => true), y)
})

Expand Down