From 6ce58a789df2f4565250cc4e9f607f5863654109 Mon Sep 17 00:00:00 2001 From: Andrey Okonetchnikov Date: Fri, 11 Nov 2016 11:02:11 +0100 Subject: [PATCH] Do not use expect to get better diffs out of Jest --- src/reducers/__tests__/collections.spec.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/reducers/__tests__/collections.spec.js b/src/reducers/__tests__/collections.spec.js index 98920d94..11b70adf 100644 --- a/src/reducers/__tests__/collections.spec.js +++ b/src/reducers/__tests__/collections.spec.js @@ -1,4 +1,3 @@ -import expect from 'expect'; import { OrderedMap, fromJS } from 'immutable'; import { configLoaded } from '../../actions/config'; import collections from '../collections'; @@ -15,11 +14,11 @@ describe('collections', () => { it('should load the collections from the config', () => { expect( collections(undefined, configLoaded({ collections: [ - { name: 'posts', folder: '_posts', fields: [{ name: 'title', widget: 'string' }] } + { name: 'posts', folder: '_posts', fields: [{ name: 'title', widget: 'string' }] }, ] })) ).toEqual( OrderedMap({ - posts: fromJS({ name: 'posts', folder: '_posts', fields: [{ name: 'title', widget: 'string' }] }) + posts: fromJS({ name: 'posts', folder: '_posts', fields: [{ name: 'title', widget: 'string' }] }), }) ); });