Skip to content

Commit

Permalink
Add sequences to table component's tests factories (#2759)
Browse files Browse the repository at this point in the history
  • Loading branch information
dottorblaster authored and balanza committed Jul 9, 2024
1 parent 1cdaf29 commit d9a76a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions assets/js/common/Table/Table.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ describe('Table component', () => {
],
};

const tableDataFactory = Factory.define(() => ({
column1: faker.person.firstName(),
column2: [faker.location.city()],
column3: faker.animal.dog(),
const tableDataFactory = Factory.define(({ sequence }) => ({
column1: `${faker.person.firstName()}${sequence}`,
column2: [`${faker.location.city()}${sequence}`],
column3: `${faker.animal.dog()}${sequence}`,
}));

it('should allow custom classes for table rows', () => {
Expand Down

0 comments on commit d9a76a6

Please sign in to comment.