Skip to content
This repository was archived by the owner on May 19, 2023. It is now read-only.

Commit f1a39a1

Browse files
authored
Merge pull request #78 from rsksmart/feature/basicTests
Feature/basic tests
2 parents fa65ae7 + b2d8a44 commit f1a39a1

File tree

9 files changed

+1475
-245
lines changed

9 files changed

+1475
-245
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ npm-debug.log*
2121
yarn-debug.log*
2222
yarn-error.log*
2323

24-
dist
24+
dist
25+
src/react-app-env.d.ts

package-lock.json

Lines changed: 1283 additions & 237 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import {
2+
Button, Checkbox, LoginOption, Logo, LogoNavbar, Typography,
3+
} from '.'
4+
5+
describe('Button component sanity', () => {
6+
it('is truthy', () => {
7+
expect(Button).toBeTruthy()
8+
})
9+
})
10+
11+
describe('Checkbox component sanity', () => {
12+
it('is truthy', () => {
13+
expect(Checkbox).toBeTruthy()
14+
})
15+
})
16+
17+
describe('LoginOption component sanity', () => {
18+
it('is truthy', () => {
19+
expect(LoginOption).toBeTruthy()
20+
})
21+
})
22+
23+
describe('Logo component sanity', () => {
24+
it('is truthy', () => {
25+
expect(Logo).toBeTruthy()
26+
})
27+
})
28+
29+
describe('LogoNavbar component sanity', () => {
30+
it('is truthy', () => {
31+
expect(LogoNavbar).toBeTruthy()
32+
})
33+
})
34+
35+
describe('Typography component sanity', () => {
36+
it('is truthy', () => {
37+
expect(Typography).toBeTruthy()
38+
})
39+
})
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import {
2+
Modal, ModalBody, ModalFooter, ModalHeader, ModalTitle,
3+
} from '.'
4+
5+
describe('Modal component sanity', () => {
6+
it('is truthy', () => {
7+
expect(Modal).toBeTruthy()
8+
})
9+
})
10+
11+
describe('ModalBody component sanity', () => {
12+
it('is truthy', () => {
13+
expect(ModalBody).toBeTruthy()
14+
})
15+
})
16+
17+
describe('ModalFooter component sanity', () => {
18+
it('is truthy', () => {
19+
expect(ModalFooter).toBeTruthy()
20+
})
21+
})
22+
23+
describe('ModalHeader component sanity', () => {
24+
it('is truthy', () => {
25+
expect(ModalHeader).toBeTruthy()
26+
})
27+
})
28+
29+
describe('ModalTitle component sanity', () => {
30+
it('is truthy', () => {
31+
expect(ModalTitle).toBeTruthy()
32+
})
33+
})
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
import {
2+
Accordion, Account, AccountModal, FAQSection, FilterCheckboxCard,
3+
FooterColumn, LabeledCheckbox, ModalDialogue, RangeSliderWithInputs,
4+
SwitchTabs, UnitsInput,
5+
} from '.'
6+
7+
describe('Accordion component sanity', () => {
8+
it('is truthy', () => {
9+
expect(Accordion).toBeTruthy()
10+
})
11+
})
12+
13+
describe('Account component sanity', () => {
14+
it('is truthy', () => {
15+
expect(Account).toBeTruthy()
16+
})
17+
})
18+
19+
describe('AccountModal component sanity', () => {
20+
it('is truthy', () => {
21+
expect(AccountModal).toBeTruthy()
22+
})
23+
})
24+
25+
describe('FAQSection component sanity', () => {
26+
it('is truthy', () => {
27+
expect(FAQSection).toBeTruthy()
28+
})
29+
})
30+
31+
describe('FilterCheckboxCard component sanity', () => {
32+
it('is truthy', () => {
33+
expect(FilterCheckboxCard).toBeTruthy()
34+
})
35+
})
36+
37+
describe('FooterColumn component sanity', () => {
38+
it('is truthy', () => {
39+
expect(FooterColumn).toBeTruthy()
40+
})
41+
})
42+
43+
describe('LabeledCheckbox component sanity', () => {
44+
it('is truthy', () => {
45+
expect(LabeledCheckbox).toBeTruthy()
46+
})
47+
})
48+
49+
describe('ModalDialogue component sanity', () => {
50+
it('is truthy', () => {
51+
expect(ModalDialogue).toBeTruthy()
52+
})
53+
})
54+
55+
describe('RangeSliderWithInputs component sanity', () => {
56+
it('is truthy', () => {
57+
expect(RangeSliderWithInputs).toBeTruthy()
58+
})
59+
})
60+
61+
describe('SwitchTabs component sanity', () => {
62+
it('is truthy', () => {
63+
expect(SwitchTabs).toBeTruthy()
64+
})
65+
})
66+
67+
describe('UnitsInput component sanity', () => {
68+
it('is truthy', () => {
69+
expect(UnitsInput).toBeTruthy()
70+
})
71+
})
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { Header, HeaderTongue } from '.'
2+
import HeaderDesktop from './HeaderDesktop'
3+
import HeaderMobile from './HeaderMobile'
4+
5+
describe('Header component sanity', () => {
6+
it('is truthy', () => {
7+
expect(Header).toBeTruthy()
8+
})
9+
})
10+
11+
describe('HeaderTongue component sanity', () => {
12+
it('is truthy', () => {
13+
expect(HeaderTongue).toBeTruthy()
14+
})
15+
})
16+
17+
describe('HeaderDesktop component sanity', () => {
18+
it('is truthy', () => {
19+
expect(HeaderDesktop).toBeTruthy()
20+
})
21+
})
22+
23+
describe('HeaderMobile component sanity', () => {
24+
it('is truthy', () => {
25+
expect(HeaderMobile).toBeTruthy()
26+
})
27+
})
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { Footer } from '.'
2+
3+
describe('Footer component sanity', () => {
4+
it('is truthy', () => {
5+
expect(Footer).toBeTruthy()
6+
})
7+
})
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { FAQPageTemplate, PageTemplate } from '.'
2+
3+
describe('FAQPageTemplate component sanity', () => {
4+
it('is truthy', () => {
5+
expect(FAQPageTemplate).toBeTruthy()
6+
})
7+
})
8+
9+
describe('PageTemplate component sanity', () => {
10+
it('is truthy', () => {
11+
expect(PageTemplate).toBeTruthy()
12+
})
13+
})

src/index.test.tsx

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)