UNPKG

@rest-api/react-models

Version:

[![npm version](https://img.shields.io/npm/v/@rest-api/react-models)](https://www.npmjs.com/package/@rest-api/react-models) [![codecov](https://codecov.io/gh/hector7/rest-api-react-models/branch/master/graph/badge.svg)](https://codecov.io/gh/hector7/rest-

17 lines (16 loc) 570 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const __1 = require(".."); describe('index test', () => { it('createAction(type)', () => { const action = __1.createAction('EEE'); expect(action.type).toBe('EEE'); expect(Object.keys(action).length).toBe(1); }); it('createAction(type, payload)', () => { const action = __1.createAction('EEE', { jeje: 1 }); expect(action.type).toBe('EEE'); expect(Object.keys(action).length).toBe(2); expect(action.jeje).toBe(1); }); });