react-jester
Advanced tools
Comparing version 1.2.1-beta.0 to 1.2.1-beta.1
@@ -36,4 +36,5 @@ "use strict"; | ||
} | ||
for (var _i = 0, _a = test.assertDispatch; _i < _a.length; _i++) { | ||
var action = _a[_i]; | ||
var assertDispatch = test.assert(); | ||
for (var _i = 0, assertDispatch_1 = assertDispatch; _i < assertDispatch_1.length; _i++) { | ||
var action = assertDispatch_1[_i]; | ||
expect(dispatch).toHaveBeenCalledWith(action); | ||
@@ -40,0 +41,0 @@ } |
@@ -22,3 +22,3 @@ import { ReactTestRenderer } from 'react-test-renderer'; | ||
params: unknown[] | Record<string, unknown>; | ||
assertDispatch: TAction[]; | ||
assert: () => TAction[]; | ||
runBefore?: () => void; | ||
@@ -25,0 +25,0 @@ runAfter?: () => void; |
@@ -33,4 +33,5 @@ /** | ||
} | ||
for (var _i = 0, _a = test.assertDispatch; _i < _a.length; _i++) { | ||
var action = _a[_i]; | ||
var assertDispatch = test.assert(); | ||
for (var _i = 0, assertDispatch_1 = assertDispatch; _i < assertDispatch_1.length; _i++) { | ||
var action = assertDispatch_1[_i]; | ||
expect(dispatch).toHaveBeenCalledWith(action); | ||
@@ -37,0 +38,0 @@ } |
@@ -22,3 +22,3 @@ import { ReactTestRenderer } from 'react-test-renderer'; | ||
params: unknown[] | Record<string, unknown>; | ||
assertDispatch: TAction[]; | ||
assert: () => TAction[]; | ||
runBefore?: () => void; | ||
@@ -25,0 +25,0 @@ runAfter?: () => void; |
{ | ||
"name": "react-jester", | ||
"version": "1.2.1-beta.0", | ||
"version": "1.2.1-beta.1", | ||
"description": "Utils to help more rapidly create Jest tests for React containers, useReducer, Redux, and action creators by reducing boiler plate", | ||
@@ -5,0 +5,0 @@ "main": "lib/es5/index.js", |
@@ -15,3 +15,3 @@ [![Build Status](https://travis-ci.com/TheSpicyMeatball/react-jester.svg?branch=main)](https://travis-ci.com/TheSpicyMeatball/react-jester) | ||
<p><b>Version:</b> 1.2.1-beta.0</p> | ||
<p><b>Version:</b> 1.2.1-beta.1</p> | ||
@@ -18,0 +18,0 @@ <h2>Summary of Utils</h2> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29859
537