Files
redux/test/utils/mapValues.spec.js
2015-11-01 15:56:14 +01:00

17 lines
319 B
JavaScript

import expect from 'expect'
import mapValues from '../../src/utils/mapValues'
describe('mapValues', () => {
it('returns object with mapped values', () => {
const test = {
a: 'c',
b: 'd'
}
expect(mapValues(test, (val, key) => val + key)).toEqual({
a: 'ca',
b: 'db'
})
})
})