client/src/store/__tests__/record.test.js
author ymh <ymh.work@gmail.com>
Thu, 11 Oct 2018 11:05:04 +0200
changeset 169 f98efa1bddd1
parent 168 ea92f4fe783d
permissions -rw-r--r--
Correct session edition

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