UNPKG

keystone

Version:

Web Application Framework and Admin GUI / Content Management System built on Express.js and Mongoose

21 lines (18 loc) 482 B
import demand from 'must'; import { countsLoaded, } from '../actions'; import { COUNTS_LOADING_SUCCESS, } from '../constants'; describe('<Home /> actions', () => { describe('countsLoaded()', () => { it('should return a type of COUNTS_LOADING_SUCCESS', () => { demand(countsLoaded().type).eql(COUNTS_LOADING_SUCCESS); }); it('should pass the counts on', () => { const counts = { 'some/path': 100 }; demand(countsLoaded(counts).counts).eql(counts); }); }); });