client/src/store/__tests__/record.test.js
author ymh <ymh.work@gmail.com>
Sat, 24 Nov 2018 09:31:16 +0100
changeset 175 6fcda59daff8
parent 168 ea92f4fe783d
permissions -rw-r--r--
Correct requirements

import { Record } from '../index';

describe('test on record', () => {
  it('Test simple record creation', () => {
    const TestRecord = Record({ foo: 'bar', hello: 'world'});

    expect(
      TestRecord({ a: 'b', foo: 'foobar' })
    ).toEqual(
      { foo: 'foobar', hello: 'world'}
    )
  });
});