client/src/store/__tests__/record.test.js
author ymh <ymh.work@gmail.com>
Tue, 18 Dec 2018 02:28:53 +0100
changeset 200 1b9b9401ba7c
parent 168 ea92f4fe783d
permissions -rw-r--r--
Set version 0.2.1

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