client/src/store/__tests__/record.test.js
author ymh <ymh.work@gmail.com>
Fri, 30 Nov 2018 22:05:02 +0100
changeset 187 7c745d8cb321
parent 168 ea92f4fe783d
permissions -rw-r--r--
Added tag 0.1.0 for changeset 3458941945e0

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'}
    )
  });
});