client/src/store/__tests__/record.test.js
author ymh <ymh.work@gmail.com>
Sat, 06 Jul 2019 00:59:17 +0200
changeset 202 2c1d48085efc
parent 168 ea92f4fe783d
permissions -rw-r--r--
update yarn.lock + activate password reset form

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