-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBuyBook.spec.tsx.snap
64 lines (59 loc) · 1.21 KB
/
BuyBook.spec.tsx.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`BuyBook renders when book has amazon_link 1`] = `
.c0 {
width: 100%;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
margin: 0 auto;
max-width: 82.5rem;
overflow: visible;
}
.c1 {
font-size: 1.6rem;
line-height: 2.5rem;
font-size: 1.6rem;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-text-decoration: none;
text-decoration: none;
height: 5rem;
width: 19rem;
color: #d4450c;
border: solid 0.1rem;
font-weight: 700;
}
@media print {
.c0 {
display: none;
}
}
<div
className="c0"
>
<a
className="c1"
data-analytics-label="buy-book"
href="https://amazon.com/some-book"
rel="noopener"
target="_blank"
>
Order a print copy
</a>
</div>
`;
exports[`BuyBook returns null when book lacks amazon_link 1`] = `null`;