UNPKG

lucid-ui

Version:

A UI component library from AppNexus.

22 lines 709 B
import assert from 'assert'; import { onMouseOver, onMouseOut } from './ToolTip.reducers'; describe('ToolTip reducers', function () { describe('onMouseOver', function () { it('should set `isExpanded` to `true`', function () { var initialState = { isExpanded: false }; var nextState = onMouseOver(initialState); assert(nextState.isExpanded, 'isExpanded must be true'); }); }); describe('onMouseOut', function () { it('should set `isExpanded` to `false`', function () { var initialState = { isExpanded: true }; var nextState = onMouseOut(initialState); assert(!nextState.isExpanded, 'isExpanded must be false'); }); }); });