Skip to content

Commit 6ed3d56

Browse files
committed
fix(test): variables from blocks to inlines
Signed-off-by: irmerk <[email protected]>
1 parent aa027d9 commit 6ed3d56

File tree

6 files changed

+47
-47
lines changed

6 files changed

+47
-47
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/markdown-cli/test/data/acceptance-slate.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
]
8383
},
8484
{
85-
"object":"block",
85+
"object":"inline",
8686
"type":"variable",
8787
"data":{
8888
"id":"shipper",
@@ -100,7 +100,7 @@
100100
]
101101
},
102102
{
103-
"object":"block",
103+
"object":"inline",
104104
"type":"variable",
105105
"data":{
106106
"id":"receiver",
@@ -125,7 +125,7 @@
125125
]
126126
},
127127
{
128-
"object":"block",
128+
"object":"inline",
129129
"type":"variable",
130130
"data":{
131131
"id":"deliverable",
@@ -143,7 +143,7 @@
143143
]
144144
},
145145
{
146-
"object":"block",
146+
"object":"inline",
147147
"type":"variable",
148148
"data":{
149149
"id":"receiver",
@@ -161,7 +161,7 @@
161161
]
162162
},
163163
{
164-
"object":"block",
164+
"object":"inline",
165165
"type":"variable",
166166
"data":{
167167
"id":"shipper",
@@ -179,7 +179,7 @@
179179
]
180180
},
181181
{
182-
"object":"block",
182+
"object":"inline",
183183
"type":"variable",
184184
"data":{
185185
"id":"deliverable",
@@ -213,7 +213,7 @@
213213
]
214214
},
215215
{
216-
"object":"block",
216+
"object":"inline",
217217
"type":"variable",
218218
"data":{
219219
"id":"receiver",
@@ -231,7 +231,7 @@
231231
]
232232
},
233233
{
234-
"object":"block",
234+
"object":"inline",
235235
"type":"variable",
236236
"data":{
237237
"id":"businessDays",
@@ -263,7 +263,7 @@
263263
]
264264
},
265265
{
266-
"object":"block",
266+
"object":"inline",
267267
"type":"variable",
268268
"data":{
269269
"id":"deliverable",
@@ -281,7 +281,7 @@
281281
]
282282
},
283283
{
284-
"object":"block",
284+
"object":"inline",
285285
"type":"variable",
286286
"data":{
287287
"id":"shipper",
@@ -299,7 +299,7 @@
299299
]
300300
},
301301
{
302-
"object":"block",
302+
"object":"inline",
303303
"type":"variable",
304304
"data":{
305305
"id":"deliverable",
@@ -361,7 +361,7 @@
361361
]
362362
},
363363
{
364-
"object":"block",
364+
"object":"inline",
365365
"type":"variable",
366366
"data":{
367367
"id":"deliverable",
@@ -379,7 +379,7 @@
379379
]
380380
},
381381
{
382-
"object":"block",
382+
"object":"inline",
383383
"type":"variable",
384384
"data":{
385385
"id":"shipper",
@@ -397,7 +397,7 @@
397397
]
398398
},
399399
{
400-
"object":"block",
400+
"object":"inline",
401401
"type":"variable",
402402
"data":{
403403
"id":"attachment",

packages/markdown-slate/src/SlateTransformer.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ describe('slate', () => {
9999
'marks': []
100100
},
101101
{
102-
'object': 'block',
102+
'object': 'inline',
103103
'type': 'variable',
104104
'data': {
105105
'id': 'foo',
@@ -136,7 +136,7 @@ describe('slate', () => {
136136
'marks': []
137137
},
138138
{
139-
'object': 'block',
139+
'object': 'inline',
140140
'type': 'computed',
141141
'data': {
142142
'value': 'bar'

packages/markdown-slate/src/ToSlateVisitor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class ToSlateVisitor {
149149
break;
150150
case 'Variable':
151151
result = {
152-
object: 'block',
152+
object: 'inline',
153153
type: 'variable',
154154
data: {
155155
id: thing.id,
@@ -160,7 +160,7 @@ class ToSlateVisitor {
160160
break;
161161
case 'ComputedVariable':
162162
result = {
163-
object: 'block',
163+
object: 'inline',
164164
type: 'computed',
165165
data: {
166166
value: thing.value

packages/markdown-slate/src/__snapshots__/SlateTransformer.test.js.snap

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
303303
"value": "%22Party%20A%22",
304304
},
305305
"nodes": Array [],
306-
"object": "block",
306+
"object": "inline",
307307
"type": "variable",
308308
},
309309
Object {
@@ -317,7 +317,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
317317
"value": "%22Party%20B%22",
318318
},
319319
"nodes": Array [],
320-
"object": "block",
320+
"object": "inline",
321321
"type": "variable",
322322
},
323323
Object {
@@ -336,7 +336,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
336336
"value": "%22Widgets%22",
337337
},
338338
"nodes": Array [],
339-
"object": "block",
339+
"object": "inline",
340340
"type": "variable",
341341
},
342342
Object {
@@ -350,7 +350,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
350350
"value": "%22Party%20B%22",
351351
},
352352
"nodes": Array [],
353-
"object": "block",
353+
"object": "inline",
354354
"type": "variable",
355355
},
356356
Object {
@@ -364,7 +364,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
364364
"value": "%22Party%20A%22",
365365
},
366366
"nodes": Array [],
367-
"object": "block",
367+
"object": "inline",
368368
"type": "variable",
369369
},
370370
Object {
@@ -378,7 +378,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
378378
"value": "%22Widgets%22",
379379
},
380380
"nodes": Array [],
381-
"object": "block",
381+
"object": "inline",
382382
"type": "variable",
383383
},
384384
Object {
@@ -404,7 +404,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
404404
"value": "%22Party%20B%22",
405405
},
406406
"nodes": Array [],
407-
"object": "block",
407+
"object": "inline",
408408
"type": "variable",
409409
},
410410
Object {
@@ -418,7 +418,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
418418
"value": "10",
419419
},
420420
"nodes": Array [],
421-
"object": "block",
421+
"object": "inline",
422422
"type": "variable",
423423
},
424424
Object {
@@ -442,7 +442,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
442442
"value": "%22Widgets%22",
443443
},
444444
"nodes": Array [],
445-
"object": "block",
445+
"object": "inline",
446446
"type": "variable",
447447
},
448448
Object {
@@ -456,7 +456,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
456456
"value": "%22Party%20A%22",
457457
},
458458
"nodes": Array [],
459-
"object": "block",
459+
"object": "inline",
460460
"type": "variable",
461461
},
462462
Object {
@@ -470,7 +470,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
470470
"value": "%22Widgets%22",
471471
},
472472
"nodes": Array [],
473-
"object": "block",
473+
"object": "inline",
474474
"type": "variable",
475475
},
476476
Object {
@@ -516,7 +516,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
516516
"value": "%22Widgets%22",
517517
},
518518
"nodes": Array [],
519-
"object": "block",
519+
"object": "inline",
520520
"type": "variable",
521521
},
522522
Object {
@@ -530,7 +530,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
530530
"value": "%22Party%20A%22",
531531
},
532532
"nodes": Array [],
533-
"object": "block",
533+
"object": "inline",
534534
"type": "variable",
535535
},
536536
Object {
@@ -544,7 +544,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
544544
"value": "%22Attachment%20X%22",
545545
},
546546
"nodes": Array [],
547-
"object": "block",
547+
"object": "inline",
548548
"type": "variable",
549549
},
550550
Object {

0 commit comments

Comments
 (0)