client/src/store/__tests__/record.test.js
author ymh <ymh.work@gmail.com>
Tue, 27 Nov 2018 15:45:45 +0100
changeset 179 e7c7e6e0a8bc
parent 168 ea92f4fe783d
permissions -rw-r--r--
Add protocols module, and add a way to change the config ini file path

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