Skip to content

Commit

Permalink
fix: cleanup test
Browse files Browse the repository at this point in the history
  • Loading branch information
will-short committed Dec 20, 2024
1 parent 6e0489b commit ce8fd43
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,17 @@ describe('table methods', () => {
})

it('should reset to initial state when defaultState is false', () => {
const table = createRowPinningTable()

const initialState = {
top: [ROW[0]],
bottom: [ROW[1]],
}
const table = createRowPinningTable({
_features: {},
initialState: {
rowPinning: initialState,
},
})

// Setup initial state in table
table.initialState.rowPinning = initialState
table.setRowPinning({
top: [ROW[2]],
bottom: [],
Expand Down

0 comments on commit ce8fd43

Please sign in to comment.