test.js 277 B

123456789101112
  1. import test from '../../..';
  2. const one = {one: 1};
  3. const two = {two: 2};
  4. test('foo', t => {
  5. // Using object rest/spread to ensure it transpiles on Node.js 6, since this
  6. // is a Node.js 8 feature
  7. const actual = {...one, ...two};
  8. t.deepEqual(actual, {one: 1, two: 2});
  9. });