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

Commit f650a31

Browse files
authored
Merge pull request #131 from Alek-S/feature/update-packages
Feature/update packages
2 parents d1b3f95 + f67b6fb commit f650a31

File tree

32 files changed

+21309
-15595
lines changed

32 files changed

+21309
-15595
lines changed
Lines changed: 3 additions & 202 deletions
Original file line numberDiff line numberDiff line change
@@ -1,218 +1,19 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`ApiCard matches the snapshot 1`] = `
4-
.c0 {
5-
background-color: white;
6-
color: #404040;
7-
font-family: 'Quicksand',sans-serif;
8-
font-size: 0.9em;
9-
border-radius: 8px;
10-
box-shadow: 0px 0px 30px -5px rgba(0,0,0,0.15);
11-
width: 500px;
12-
padding: 1rem;
13-
margin: auto;
14-
margin-top: 1rem;
15-
background-color: #424242;
16-
color: #BCBCBC;
17-
}
18-
19-
.c0 input {
20-
outline: none;
21-
color: #404040;
22-
font-family: 'Quicksand',sans-serif;
23-
background-color: #F1F3F4;
24-
border: 1px solid #F1F3F4;
25-
border-radius: 5rem;
26-
-webkit-transition: all 0.3s;
27-
transition: all 0.3s;
28-
}
29-
30-
.c0 input::-webkit-input-placeholder {
31-
font-size: 1rem;
32-
font-weight: 400;
33-
font-style: italic;
34-
font-family: 'Quicksand',sans-serif;
35-
color: #848484;
36-
}
37-
38-
.c0 input::-moz-placeholder {
39-
font-size: 1rem;
40-
font-weight: 400;
41-
font-style: italic;
42-
font-family: 'Quicksand',sans-serif;
43-
color: #848484;
44-
}
45-
46-
.c0 input:-ms-input-placeholder {
47-
font-size: 1rem;
48-
font-weight: 400;
49-
font-style: italic;
50-
font-family: 'Quicksand',sans-serif;
51-
color: #848484;
52-
}
53-
54-
.c0 input::placeholder {
55-
font-size: 1rem;
56-
font-weight: 400;
57-
font-style: italic;
58-
font-family: 'Quicksand',sans-serif;
59-
color: #848484;
60-
}
61-
62-
.c0 input:hover {
63-
border: solid 1px #d9d9d9;
64-
}
65-
66-
.c0 input:focus,
67-
.c0 input:active {
68-
border: solid 1px #46C8F5;
69-
}
70-
71-
.c0 input.true {
72-
border: 1px solid #ED5050;
73-
}
74-
75-
.c0 a {
76-
margin-left: 1rem;
77-
color: #68F6BA;
78-
}
79-
80-
.c0 .pill {
81-
background: linear-gradient(160deg,#57DACB 0%,#55A2ED 100%);
82-
color: white;
83-
padding: 0.1rem 0.5rem;
84-
border-radius: 4px;
85-
}
86-
87-
.c0 .pill-secondary {
88-
background-color: #595959;
89-
color: white;
90-
padding: 0.1rem 0.5rem;
91-
border-radius: 4px;
92-
}
93-
94-
.c0 .gql_query {
95-
margin-left: 0.5rem;
96-
color: #EAEAEA;
97-
}
98-
99-
.c0 .query_title {
100-
margin-top: 0.75rem;
101-
}
102-
103-
@media (max-width:535px) {
104-
.c0 {
105-
width: 90%;
106-
overflow: none;
107-
word-wrap: break-word;
108-
}
109-
110-
.c0 .pill,
111-
.c0 .pill-secondary {
112-
display: block;
113-
width: -webkit-fit-content;
114-
width: -moz-fit-content;
115-
width: fit-content;
116-
margin-bottom: 0.5rem;
117-
}
118-
119-
.c0 a,
120-
.c0 .gql_query {
121-
margin-left: 0;
122-
}
123-
}
124-
1254
<div
126-
className="c0"
5+
className="defaultStyle-g21vfe-0 defaultStyle__Card-g21vfe-1 defaultStyle__ApiCard-g21vfe-4 izQYFc"
1276
/>
1287
`;
1298

1309
exports[`Policy matches the snapshot 1`] = `
131-
.c0 {
132-
background-color: #fafafa;
133-
color: #404040;
134-
font-family: 'Quicksand',sans-serif;
135-
padding: 10rem 10rem 5rem 10rem;
136-
-webkit-letter-spacing: 1px;
137-
-moz-letter-spacing: 1px;
138-
-ms-letter-spacing: 1px;
139-
letter-spacing: 1px;
140-
}
141-
142-
.c0 div {
143-
max-width: 750px;
144-
margin: auto;
145-
}
146-
147-
.c0 h1 {
148-
font-weight: 600;
149-
font-size: 1.4rem;
150-
margin-bottom: 0.5rem;
151-
}
152-
153-
.c0 h2 {
154-
font-weight: 600;
155-
font-size: 1rem;
156-
margin-top: 3rem;
157-
}
158-
159-
.c0 h3 {
160-
font-weight: 500;
161-
font-size: 1rem;
162-
}
163-
164-
.c0 p {
165-
padding: 1.5rem;
166-
text-align: justify;
167-
line-height: 150%;
168-
}
169-
170-
.c0 ol {
171-
margin-left: 1rem;
172-
line-height: 150%;
173-
}
174-
175-
.c0 li:before {
176-
content: '';
177-
margin: 1rem;
178-
margin-top: 2rem;
179-
}
180-
181-
.c0 a {
182-
-webkit-text-decoration: none;
183-
text-decoration: none;
184-
color: #ED5050;
185-
}
186-
187-
@media (max-width:475px) {
188-
.c0 {
189-
padding: 1rem;
190-
padding-top: 7rem;
191-
}
192-
193-
.c0 h3 {
194-
margin-bottom: 2rem;
195-
}
196-
197-
.c0 p {
198-
padding: 0.5rem;
199-
}
200-
}
201-
20210
<section
203-
className="c0"
11+
className="defaultStyle__Policy-g21vfe-8 dptqDY"
20412
/>
20513
`;
20614

20715
exports[`defaultStyle matches the snapshot 1`] = `
208-
.c0 {
209-
background-color: white;
210-
color: #404040;
211-
font-family: 'Quicksand',sans-serif;
212-
font-size: 0.9em;
213-
}
214-
21516
<div
216-
className="c0"
17+
className="defaultStyle-g21vfe-0 dMrRuR"
21718
/>
21819
`;

frontend/components/Filedrop/Filedrop.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { fireEvent, render, getByLabelText } from '@testing-library/react';
77

88
describe('Filedrop', () => {
99
test('matches the snapshot', () => {
10-
const tree = shallowWithTheme(<Filedrop />, theme);
10+
const tree = shallow(<Filedrop theme={theme} />);
1111
expect(toJson(tree)).toMatchSnapshot();
1212
});
1313

frontend/components/Footer/Footer.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import theme from '../../theme';
77

88
describe('Footer', () => {
99
test('matches the snapshot', () => {
10-
const tree = shallowWithTheme(<Footer />, theme).dive();
10+
const tree = shallow(<Footer theme={theme} />);
1111
expect(toJson(tree)).toMatchSnapshot();
1212
});
1313
});
Lines changed: 3 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`Footer matches the snapshot 1`] = `
4-
<StyledComponent
5-
forwardedComponent={
6-
Object {
7-
"$$typeof": Symbol(react.forward_ref),
8-
"attrs": Array [],
9-
"componentStyle": ComponentStyle {
10-
"componentId": "Footer__Styledfooter-d380t0-0",
11-
"isStatic": false,
12-
"lastClassName": "bEyZZv",
13-
"rules": Array [
14-
"background-color:white;color:",
15-
[Function],
16-
";font-family:",
17-
[Function],
18-
";font-size:0.9em;",
19-
"box-sizing:border-box;padding:1rem;margin-top:0.5rem;text-align:center;width:100%;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;& a{color:",
20-
[Function],
21-
";}@media (max-width:500px){flex-direction:column;div{margin-top:0.5rem;margin-bottom:0.5rem;}}",
22-
],
23-
},
24-
"displayName": "Footer__Styledfooter",
25-
"foldedComponentIds": Array [
26-
"defaultStyle-g21vfe-0",
27-
],
28-
"render": [Function],
29-
"styledComponentId": "Footer__Styledfooter-d380t0-0",
30-
"target": "div",
31-
"toString": [Function],
32-
"usesTheme": true,
33-
"warnTooManyClasses": [Function],
34-
"withComponent": [Function],
35-
}
36-
}
37-
forwardedRef={null}
38-
>
4+
<Footer__Styledfooter>
395
<div>
406
Created with 🍷 by
417
@@ -99,54 +65,11 @@ exports[`Footer matches the snapshot 1`] = `
9965
Terms of Service
10066
</Link>
10167
</div>
102-
</StyledComponent>
68+
</Footer__Styledfooter>
10369
`;
10470

10571
exports[`Styledfooter matches the snapshot 1`] = `
106-
.c0 {
107-
background-color: white;
108-
color: #404040;
109-
font-family: 'Quicksand',sans-serif;
110-
font-size: 0.9em;
111-
box-sizing: border-box;
112-
padding: 1rem;
113-
margin-top: 0.5rem;
114-
text-align: center;
115-
width: 100%;
116-
display: -webkit-box;
117-
display: -webkit-flex;
118-
display: -ms-flexbox;
119-
display: flex;
120-
-webkit-flex-direction: row;
121-
-ms-flex-direction: row;
122-
flex-direction: row;
123-
-webkit-flex-wrap: wrap;
124-
-ms-flex-wrap: wrap;
125-
flex-wrap: wrap;
126-
-webkit-box-pack: center;
127-
-webkit-justify-content: center;
128-
-ms-flex-pack: center;
129-
justify-content: center;
130-
}
131-
132-
.c0 a {
133-
color: #404040;
134-
}
135-
136-
@media (max-width:500px) {
137-
.c0 {
138-
-webkit-flex-direction: column;
139-
-ms-flex-direction: column;
140-
flex-direction: column;
141-
}
142-
143-
.c0 div {
144-
margin-top: 0.5rem;
145-
margin-bottom: 0.5rem;
146-
}
147-
}
148-
14972
<div
150-
className="c0"
73+
className="defaultStyle-g21vfe-0 Footer__Styledfooter-d380t0-0 iplvdh"
15174
/>
15275
`;

frontend/components/GQLExample/GQLExample.test.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ import theme from '../../theme';
66

77
describe('GQLExample', () => {
88
test('matches the snapshot', () => {
9-
const tree = shallowWithTheme(
10-
<GQLExample host="mockHost.com" id="42" />,
11-
theme
12-
).dive();
9+
const tree = shallow(
10+
<GQLExample host="mockHost.com" id="42" theme={theme} />
11+
);
1312
expect(toJson(tree)).toMatchSnapshot();
1413
});
1514
});

0 commit comments

Comments
 (0)