client/src/store/__tests__/record.test.js
author ymh <ymh.work@gmail.com>
Mon, 26 Nov 2018 13:57:30 +0100
changeset 178 89d8432aad9f
parent 168 ea92f4fe783d
permissions -rw-r--r--
Add a IRINOTES_CONFIG_BASE to allow giving a config file location

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