From 0c1eeb9efa88b6f80a89a9603b9b98adf4af1cba Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 9 Jun 2020 19:31:52 -0500 Subject: [PATCH] Tests: start reducers/auth tests --- app/soapbox/reducers/__tests__/auth-test.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 app/soapbox/reducers/__tests__/auth-test.js diff --git a/app/soapbox/reducers/__tests__/auth-test.js b/app/soapbox/reducers/__tests__/auth-test.js new file mode 100644 index 000000000..1eeece858 --- /dev/null +++ b/app/soapbox/reducers/__tests__/auth-test.js @@ -0,0 +1,12 @@ +import reducer from '../auth'; +import { Map as ImmutableMap, List as ImmutableList } from 'immutable'; + +describe('auth reducer', () => { + it('should return the initial state', () => { + expect(reducer(undefined, {})).toEqual(ImmutableMap({ + app: ImmutableMap(), + user: ImmutableMap(), + tokens: ImmutableList(), + })); + }); +});