All files / nexshop-web-contents/src/reducer scene.js

100% Statements 6/6
66.67% Branches 2/3
100% Functions 1/1
100% Lines 6/6
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 181x       1x       2x   2x   1x     1x    
import {
    CREATE_SCENE,
} from '../action/scene';
 
const initialState = {
};
 
export function scene(state = initialState, action) {
    const {type, title, resolution} = action;
 
    switch (type) {
        case CREATE_SCENE:
            return Object.assign({}, state, {title, resolution});
 
        default:
            return state;
    }
}