Skip to content

Commit fbdcf5f

Browse files
committed
Fix wrong test.each and describe.each calls
1 parent 7e70a01 commit fbdcf5f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/toolkit/src/query/tests/devWarnings.test.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ describe('missing middleware', () => {
5959
test.each([
6060
['development', true],
6161
['production', false],
62-
])('%s warns if middleware is missing: %s', ([env, shouldWarn]) => {
63-
;(process.env as any).NODE_ENV = env
62+
])('%s warns if middleware is missing: %s', (env, shouldWarn) => {
6463
const store = configureStore({
6564
reducer: { [api1.reducerPath]: api1.reducer },
6665
})
@@ -119,8 +118,7 @@ describe('missing reducer', () => {
119118
describe.each([
120119
['development', true],
121120
['production', false],
122-
])('%s warns if reducer is missing: %s', ([env, shouldWarn]) => {
123-
;(process.env as any).NODE_ENV = env
121+
])('%s warns if reducer is missing: %s', (env, shouldWarn) => {
124122
test('middleware not crashing if reducer is missing', async () => {
125123
const store = configureStore({
126124
reducer: { x: () => 0 },

0 commit comments

Comments
 (0)