-
Notifications
You must be signed in to change notification settings - Fork 309
/
sampleData.ts
48 lines (43 loc) · 1.74 KB
/
sampleData.ts
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
import * as fs from 'fs'
const TEST_DATA_DIR = './tests/testData'
export const sampleManifests = {
helloBlockstack: {
name: 'Hello, Blockstack',
short_name: 'Hello, Blockstack',
start_url: 'https://helloblockstack.com',
display: 'standalone',
background_color: '#fff',
description: 'A simple app demonstrating how to log in with Blockstack.',
icons: [
{
src: 'https://raw.githubusercontent.com/blockstack/blockstack-portal/master/app/images/app-hello-blockstack.png',
sizes: '192x192',
type: 'image/png'
}
]
}
}
export const sampleNameRecords = {
ryan: JSON.parse(fs.readFileSync(`${TEST_DATA_DIR}/name-records/ryan.json`, 'utf8'))
}
export const sampleProfiles = {
balloonDog: JSON.parse(fs.readFileSync(`${TEST_DATA_DIR}/profiles/balloonDog.json`, 'utf8')),
naval: JSON.parse(fs.readFileSync(`${TEST_DATA_DIR}/profiles/naval.json`, 'utf8')),
ryan: JSON.parse(fs.readFileSync(`${TEST_DATA_DIR}/profiles/ryan.json`, 'utf8')),
larry: JSON.parse(fs.readFileSync(`${TEST_DATA_DIR}/profiles/larry.json`, 'utf8')),
google: JSON.parse(fs.readFileSync(`${TEST_DATA_DIR}/profiles/google.json`, 'utf8')),
navalLegacy: JSON.parse(fs.readFileSync(`${TEST_DATA_DIR}/profiles/naval-legacy.json`, 'utf8')),
navalLegacyConvert: JSON.parse(
fs.readFileSync(`${TEST_DATA_DIR}/profiles/naval-legacy-convert.json`, 'utf8')
)
}
export const sampleTokenFiles = {
ryan_apr20: {
url: 'https://blockstack.s3.amazonaws.com/ryan_apr20.id',
body: JSON.parse(fs.readFileSync(`${TEST_DATA_DIR}/token-files/ryan_apr20.json`, 'utf8'))
},
ryan: {
url: 'https://blockstack.s3.amazonaws.com/ryan.id',
body: JSON.parse(fs.readFileSync(`${TEST_DATA_DIR}/token-files/ryan.json`, 'utf8'))
}
}