MCPcopy
hub / github.com/JoelOtter/kajero / handleFirstChange

Function handleFirstChange

src/js/reducers/notebookReducer-spec.js:9–22  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

7import { kajeroHomepage } from '../config';
8
9function handleFirstChange(state) {
10 return state.set(
11 'undoStack', Immutable.List([state.remove('undoStack')])
12 ).setIn(
13 ['metadata', 'created'],
14 new Date()
15 ).setIn(
16 ['metadata', 'original'],
17 Immutable.fromJS({
18 title: undefined,
19 url: undefined
20 })
21 );
22}
23
24describe('notebook reducer', () => {
25

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected