client/src/store/__tests__/record.test.js
author ymh <ymh.work@gmail.com>
Thu, 06 Dec 2018 01:33:54 +0100
changeset 196 ef9cde55d9f1
parent 168 ea92f4fe783d
permissions -rw-r--r--
update venv

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