Skip to content

Commit

Permalink
fix build and added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ponnexcodev committed May 2, 2022
1 parent 23ab4f7 commit 16e57da
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/components/button/primary/button-primary.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import '@testing-library/jest-dom';
import {render, screen} from '@testing-library/react';
import React from 'react';
import {ButtonPrimary} from './button-primary';

describe(ButtonPrimary.name, () => {
it('should display text', () => {
render(<ButtonPrimary text="Buy Now" />);

expect(screen.queryByText('Buy Now')).toBeInTheDocument();
});
});
12 changes: 12 additions & 0 deletions src/components/button/selection/button-selection.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import '@testing-library/jest-dom';
import {render, screen} from '@testing-library/react';
import React from 'react';
import {ButtonSelection} from './button-selection';

describe(ButtonSelection.name, () => {
it('should display text', () => {
render(<ButtonSelection text="For Sale" />);

expect(screen.queryByText('For Sale')).toBeInTheDocument();
});
});
4 changes: 3 additions & 1 deletion src/components/index.tsx
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export * from './hello-world/hello-world';
export * from './button/primary/button-primary';
export * from './button/selection/button-selection';
export * from './toniq-icon/toniq-icon';

0 comments on commit 16e57da

Please sign in to comment.