client/src/store/__tests__/record.test.js
author ymh <ymh.work@gmail.com>
Sun, 25 Nov 2018 21:18:55 +0100
changeset 176 a24f6bf72f6a
parent 168 ea92f4fe783d
permissions -rw-r--r--
update requirement for django-auditlog

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