This repository has been archived by the owner on Oct 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathparseMarkdown.test.js
159 lines (147 loc) · 7.09 KB
/
parseMarkdown.test.js
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
/* eslint-env jest */
const s = require('common-tags').stripIndent
const parseMarkdown = require('./parseMarkdown')
it('parses a valid markdown file successfully', () => {
const md = s`
---
id: google-cloud-onboard-bangkok-2018
date: '2018-01-30'
time:
- '08:30 ~ 12:00'
- '12:00 ~ 13:00 (break lol)'
- '13:00 ~ 17:30++'
location:
title: Centara Grand at CentralWorld
url: >-
https://www.google.com/maps/place/Centara+Grand+at+CentralWorld/@13.7477222,100.5365583,17z/data=!3m1!4b1!4m5!3m4!1s0x30e2992f7809567f:0xccc050cff0e7d234!8m2!3d13.747717!4d100.538747
detail: 'Convention Centre B2, 22nd Floor'
categories:
- Workshop
topics:
- Google Cloud Platform
- Cloud
links:
- type: website
url: 'https://cloudplatformonline.com/2018-onboard-bkk.html'
title: Google Cloud
- type: ticket
url: 'https://cloudplatformonline.com/2018-onboard-bkk.html#register'
title: Google Cloud
resources:
- type: writeup
title: 'Mock official writeup resource'
url: 'https://cloudplatformonline.com/2018-onboard-bkk.html'
community_resources:
- type: video
title: Google Cloud on Board Bangkok 2018 Part 1
url: 'https://www.youtube.com/watch?v=63_ld1OHnC4'
- type: video
title: Google Cloud on Board Bangkok 2018 Part 2
url: 'https://www.youtube.com/watch?v=3Mzv7GKb1f4'
---
# Google Cloud OnBoard Bangkok 2018
> งานสัมมนา Google Cloud OnBoard นี้เป็นงานสัมมนาฟรีที่วิทยากรจาก Google
> จะมาแนะนำเทคโนโลยีของ Google Cloud Platform งานนี้เหมาะกับทั้ง IT Managers,
> Systems Engineers and Operations professionals, Developers, Solution
> Architects, และผู้ที่สนใจในเทคโนโลยีของ Google ทุกคน
Cloud OnBoard is a free full-day instructor-led enablement and training event that will provide you with a step-by-step technical introduction to the Google Cloud Platform (GCP). Through a combination of instructor-led presentations and hands-on labs, you will learn how to get started with Google App Engine, Datastore, Storage, Container Engine, Compute Engine and Network, Big Data and Machine Learning.
`
const result = parseMarkdown(md, {})
expect(result).toMatchSnapshot()
})
it('parses a valid markdown file with shorteded google map url successfully', () => {
const md = s`
---
id: google-cloud-onboard-bangkok-2018
date: '2018-01-30'
time:
- '08:30 ~ 12:00'
- '12:00 ~ 13:00 (break lol)'
- '13:00 ~ 17:30++'
location:
title: Centara Grand at CentralWorld
url: >-
https://goo.gl/maps/18gUYKBwibA2
detail: 'Convention Centre B2, 22nd Floor'
categories:
- Workshop
topics:
- Google Cloud Platform
- Cloud
links:
- type: website
url: 'https://cloudplatformonline.com/2018-onboard-bkk.html'
title: Google Cloud
- type: ticket
url: 'https://cloudplatformonline.com/2018-onboard-bkk.html#register'
title: Google Cloud
resources:
- type: writeup
title: 'Mock official writeup resource'
url: 'https://cloudplatformonline.com/2018-onboard-bkk.html'
community_resources:
- type: video
title: Google Cloud on Board Bangkok 2018 Part 1
url: 'https://www.youtube.com/watch?v=63_ld1OHnC4'
- type: video
title: Google Cloud on Board Bangkok 2018 Part 2
url: 'https://www.youtube.com/watch?v=3Mzv7GKb1f4'
---
# Google Cloud OnBoard Bangkok 2018
> งานสัมมนา Google Cloud OnBoard นี้เป็นงานสัมมนาฟรีที่วิทยากรจาก Google
> จะมาแนะนำเทคโนโลยีของ Google Cloud Platform งานนี้เหมาะกับทั้ง IT Managers,
> Systems Engineers and Operations professionals, Developers, Solution
> Architects, และผู้ที่สนใจในเทคโนโลยีของ Google ทุกคน
Cloud OnBoard is a free full-day instructor-led enablement and training event that will provide you with a step-by-step technical introduction to the Google Cloud Platform (GCP). Through a combination of instructor-led presentations and hands-on labs, you will learn how to get started with Google App Engine, Datastore, Storage, Container Engine, Compute Engine and Network, Big Data and Machine Learning.
`
const result = parseMarkdown(md, {})
expect(result).toMatchSnapshot()
})
it('parses a valid markdown file with Co-creation Camp category successfully', () => {
const md = s`
---
id: google-cloud-onboard-bangkok-2018
date: '2018-01-30'
time:
- '08:30 ~ 12:00'
- '12:00 ~ 13:00 (break lol)'
- '13:00 ~ 17:30++'
location:
title: Centara Grand at CentralWorld
url: >-
https://www.google.com/maps/place/Centara+Grand+at+CentralWorld/@13.7477222,100.5365583,17z/data=!3m1!4b1!4m5!3m4!1s0x30e2992f7809567f:0xccc050cff0e7d234!8m2!3d13.747717!4d100.538747
detail: 'Convention Centre B2, 22nd Floor'
categories:
- Co-creation Camp
topics:
- Google Cloud Platform
- Cloud
links:
- type: website
url: 'https://cloudplatformonline.com/2018-onboard-bkk.html'
title: Google Cloud
- type: ticket
url: 'https://cloudplatformonline.com/2018-onboard-bkk.html#register'
title: Google Cloud
resources:
- type: writeup
title: 'Mock official writeup resource'
url: 'https://cloudplatformonline.com/2018-onboard-bkk.html'
community_resources:
- type: video
title: Google Cloud on Board Bangkok 2018 Part 1
url: 'https://www.youtube.com/watch?v=63_ld1OHnC4'
- type: video
title: Google Cloud on Board Bangkok 2018 Part 2
url: 'https://www.youtube.com/watch?v=3Mzv7GKb1f4'
---
# Google Cloud OnBoard Bangkok 2018
> งานสัมมนา Google Cloud OnBoard นี้เป็นงานสัมมนาฟรีที่วิทยากรจาก Google
> จะมาแนะนำเทคโนโลยีของ Google Cloud Platform งานนี้เหมาะกับทั้ง IT Managers,
> Systems Engineers and Operations professionals, Developers, Solution
> Architects, และผู้ที่สนใจในเทคโนโลยีของ Google ทุกคน
Cloud OnBoard is a free full-day instructor-led enablement and training event that will provide you with a step-by-step technical introduction to the Google Cloud Platform (GCP). Through a combination of instructor-led presentations and hands-on labs, you will learn how to get started with Google App Engine, Datastore, Storage, Container Engine, Compute Engine and Network, Big Data and Machine Learning.
`
const result = parseMarkdown(md, {})
expect(result).toMatchSnapshot()
})