client/src/store/__tests__/record.test.js
author ymh <ymh.work@gmail.com>
Wed, 05 Dec 2018 19:00:08 +0100
changeset 193 99e342f9fb0c
parent 168 ea92f4fe783d
permissions -rw-r--r--
Display protocol graphically

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