Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LocalPass
localpass-mobile
Commits
a049ce4b
Commit
a049ce4b
authored
4 years ago
by
Gabriel Weich
Browse files
Options
Download
Plain Diff
Merge branch 'implementation/tests' into 'dev'
Novos testes feitos See merge request
!38
parents
acfe0935
395a6e43
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
__tests__/AboutUs/AboutUs.test.tsx
+17
-0
__tests__/AboutUs/AboutUs.test.tsx
__tests__/Contact/Contact.test.tsx
+1
-1
__tests__/Contact/Contact.test.tsx
__tests__/HowItWorks/HowItWorks.test.tsx
+17
-0
__tests__/HowItWorks/HowItWorks.test.tsx
__tests__/PrivacyPolicy/PrivacyPolicy.test.tsx
+18
-0
__tests__/PrivacyPolicy/PrivacyPolicy.test.tsx
__tests__/TermsOfUse/TermsOfUse.test.tsx
+18
-0
__tests__/TermsOfUse/TermsOfUse.test.tsx
with
71 additions
and
1 deletion
+71
-1
__tests__/AboutUs/AboutUs.test.tsx
0 → 100644
View file @
a049ce4b
import
React
from
'
react
'
;
import
AboutUs
from
'
../../src/pages/AboutUs/AboutUs
'
;
import
renderer
from
'
react-test-renderer
'
;
describe
(
'
about us tests
'
,
()
=>
{
//Workaround para ocultar os warnings dos styled components
//esses warnings ocorrem na conversão de um componente para json (chamada toJSON)
//alguns componentes são definidos sem nome, resultando em um json definido pelo nome "0"("ilegal").
console
.
error
=
jest
.
fn
()
it
(
'
rendering
'
,
()
=>
{
const
rendered
=
renderer
.
create
(<
AboutUs
></
AboutUs
>).
toJSON
();
expect
(
rendered
).
toBeTruthy
();
expect
(
rendered
).
toMatchSnapshot
();
});
});
This diff is collapsed.
Click to expand it.
__tests__/Contact/Contact.test.tsx
View file @
a049ce4b
...
...
@@ -4,7 +4,7 @@ import renderer from 'react-test-renderer';
import
{
render
,
fireEvent
}
from
'
@testing-library/react-native
'
;
jest
.
mock
(
'
react-native/Libraries/Animated/src/NativeAnimatedHelper
'
);
describe
(
'
contat
o
tests
'
,
()
=>
{
describe
(
'
conta
c
t tests
'
,
()
=>
{
//Workaround para ocultar os warnings dos styled components
//esses warnings ocorrem na conversão de um componente para json (chamada toJSON)
//alguns componentes são definidos sem nome, resultando em um json definido pelo nome "0"("ilegal").
...
...
This diff is collapsed.
Click to expand it.
__tests__/HowItWorks/HowItWorks.test.tsx
0 → 100644
View file @
a049ce4b
import
React
from
'
react
'
;
import
HowItWorks
from
'
../../src/pages/HowItWorks/HowItWorks
'
;
import
renderer
from
'
react-test-renderer
'
;
describe
(
'
privacy policy tests
'
,
()
=>
{
//Workaround para ocultar os warnings dos styled components
//esses warnings ocorrem na conversão de um componente para json (chamada toJSON)
//alguns componentes são definidos sem nome, resultando em um json definido pelo nome "0"("ilegal").
console
.
error
=
jest
.
fn
()
it
(
'
rendering
'
,
()
=>
{
const
rendered
=
renderer
.
create
(<
HowItWorks
></
HowItWorks
>).
toJSON
();
expect
(
rendered
).
toBeTruthy
();
expect
(
rendered
).
toMatchSnapshot
();
});
});
This diff is collapsed.
Click to expand it.
__tests__/PrivacyPolicy/PrivacyPolicy.test.tsx
0 → 100644
View file @
a049ce4b
import
React
from
'
react
'
;
import
PrivacyPolicy
from
'
../../src/pages/PrivacyPolicy/PrivacyPolicy
'
;
import
renderer
from
'
react-test-renderer
'
;
describe
(
'
privacy policy tests
'
,
()
=>
{
//Workaround para ocultar os warnings dos styled components
//esses warnings ocorrem na conversão de um componente para json (chamada toJSON)
//alguns componentes são definidos sem nome, resultando em um json definido pelo nome "0"("ilegal").
console
.
error
=
jest
.
fn
()
it
(
'
rendering
'
,
()
=>
{
const
rendered
=
renderer
.
create
(<
PrivacyPolicy
></
PrivacyPolicy
>).
toJSON
();
expect
(
rendered
).
toBeTruthy
();
expect
(
rendered
).
toMatchSnapshot
();
});
});
This diff is collapsed.
Click to expand it.
__tests__/TermsOfUse/TermsOfUse.test.tsx
0 → 100644
View file @
a049ce4b
import
React
from
'
react
'
;
import
TermsOfUse
from
'
../../src/pages/TermsOfUse/TermsOfUse
'
;
import
renderer
from
'
react-test-renderer
'
;
describe
(
'
terms of use tests
'
,
()
=>
{
//Workaround para ocultar os warnings dos styled components
//esses warnings ocorrem na conversão de um componente para json (chamada toJSON)
//alguns componentes são definidos sem nome, resultando em um json definido pelo nome "0"("ilegal").
console
.
error
=
jest
.
fn
()
it
(
'
rendering
'
,
()
=>
{
const
rendered
=
renderer
.
create
(<
TermsOfUse
></
TermsOfUse
>).
toJSON
();
expect
(
rendered
).
toBeTruthy
();
expect
(
rendered
).
toMatchSnapshot
();
});
});
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment