client/src/store/__tests__/record.test.js
author ymh <ymh.work@gmail.com>
Sat, 06 Jul 2019 01:00:53 +0200
changeset 204 0c78763b5f10
parent 168 ea92f4fe783d
permissions -rw-r--r--
set version

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