Skip to content

Commit

Permalink
fix(test): remove unnecessary setup for test
Browse files Browse the repository at this point in the history
  • Loading branch information
atticusofsparta committed Dec 14, 2023
1 parent d94bc69 commit 2e776da
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/actions/write/setRecord.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -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: {
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit 2e776da

Please sign in to comment.