initial commit
[squeep-indieauth-helper] / test / test-data / communication.js
1 'use strict';
2
3 module.exports = {
4 linkHeaders: {
5 'link': '<https://thuza.ratfeathers.com/>; rel="self", <https://hub.squeep.com/>; rel="hub", <https://thuza.ratfeathers.com/image.png>; rel="preload"; as="image"',
6 },
7 hCardHtml: `<!DOCTYPE html>
8 <html lang="en">
9 <head>
10 <meta name="viewport" content="width=device-width,initial-scale=1">
11 <title>Thuza Exists</title>
12 <link rel="authorization_endpoint" href="https://ia.squeep.com/auth">
13 <link rel="token_endpoint" href="https://ia.squeep.com/token">
14 <link rel="canonical" href="https://thuza.ratfeathers.com/">
15 </head>
16 <body>
17 <main>
18 <section>
19 Nothing to share yet, only a profile.
20 </section>
21 <section class="h-card p-author" style="display:none">
22 <img class="u-photo" src="image.png">
23 <a class="p-name u-url" rel="author me" href="">Thuza</a>
24 </section>
25 </main>
26 </body>
27 </html>`,
28 multiMF2Html: `<!DOCTYPE html>
29 <html lang="en">
30 <head>
31 <meta name="viewport" content="width=device-width,initial-scale=1">
32 <title>Thuza Exists</title>
33 <link rel="authorization_endpoint" href="https://ia.squeep.com/auth">
34 <link rel="token_endpoint" href="https://ia.squeep.com/token">
35 <link rel="canonical" href="https://thuza.ratfeathers.com/">
36 </head>
37 <body>
38 <main>
39 <section>
40 Nothing to share yet, only a profile.
41 </section>
42 <section class="h-card p-author" style="display:none">
43 <a class="p-name u-url" rel="author me" href="">Thuza</a>
44 </section>
45 <section class="h-card" style="display:none">
46 <img class="u-photo" src="image.png">
47 <a class="p-name u-url" rel="me" href="">Also Thuza</a>
48 </section>
49 <section class="h-app" style="display:none">
50 <a class="p=name u-url" href="">Also Some Client</a>
51 </section>
52 </main>
53 </body>
54 </html>`,
55 noneMF2Html: `<!DOCTYPE html>
56 <html lang="en">
57 <head>
58 <title>None Data</title>
59 </head>
60 <body>
61 <main>
62 <section>
63 No microformat data here.
64 </section>
65 </main>
66 </body>
67 </html>`,
68 };