From 2e776da891125c03d10b8b3fbe55690a020bf5ea Mon Sep 17 00:00:00 2001 From: atticusofsparta Date: Wed, 13 Dec 2023 22:17:40 -0600 Subject: [PATCH] fix(test): remove unnecessary setup for test --- src/actions/write/setRecord.test.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/actions/write/setRecord.test.ts b/src/actions/write/setRecord.test.ts index 0f115c6..eb29b72 100644 --- a/src/actions/write/setRecord.test.ts +++ b/src/actions/write/setRecord.test.ts @@ -25,12 +25,6 @@ import { baselineAntState } from '../../../tests/utils/constants'; import { setRecord } from './setRecord'; describe('setRecord', () => { - let state = { ...baselineAntState }; - - beforeEach(() => { - state = { ...baselineAntState }; - }); - it.each([''.padEnd(43, '_'), ''.padEnd(43, 'a'), ''.padEnd(43, '1')])( 'should throw if not owner or controller', async (caller) => { @@ -210,7 +204,7 @@ describe('setRecord', () => { 'should set a record of max character length', async (subDomain: string) => { const result = (await setRecord( - { ...state }, + { ...baselineAntState }, { caller: baselineAntState.owner, input: { @@ -240,7 +234,7 @@ describe('setRecord', () => { 'should not set a record exceeding max character length', async (subDomain: string) => { const result = await setRecord( - { ...state, records: {} }, + { ...baselineAntState, records: {} }, { caller: baselineAntState.owner, input: {