Skip to content

Commit

Permalink
fix(test): variables from blocks to inlines
Browse files Browse the repository at this point in the history
Signed-off-by: irmerk <[email protected]>
  • Loading branch information
jolanglinais committed Oct 3, 2019
1 parent aa027d9 commit 6ed3d56
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 47 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 14 additions & 14 deletions packages/markdown-cli/test/data/acceptance-slate.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
]
},
{
"object":"block",
"object":"inline",
"type":"variable",
"data":{
"id":"shipper",
Expand All @@ -100,7 +100,7 @@
]
},
{
"object":"block",
"object":"inline",
"type":"variable",
"data":{
"id":"receiver",
Expand All @@ -125,7 +125,7 @@
]
},
{
"object":"block",
"object":"inline",
"type":"variable",
"data":{
"id":"deliverable",
Expand All @@ -143,7 +143,7 @@
]
},
{
"object":"block",
"object":"inline",
"type":"variable",
"data":{
"id":"receiver",
Expand All @@ -161,7 +161,7 @@
]
},
{
"object":"block",
"object":"inline",
"type":"variable",
"data":{
"id":"shipper",
Expand All @@ -179,7 +179,7 @@
]
},
{
"object":"block",
"object":"inline",
"type":"variable",
"data":{
"id":"deliverable",
Expand Down Expand Up @@ -213,7 +213,7 @@
]
},
{
"object":"block",
"object":"inline",
"type":"variable",
"data":{
"id":"receiver",
Expand All @@ -231,7 +231,7 @@
]
},
{
"object":"block",
"object":"inline",
"type":"variable",
"data":{
"id":"businessDays",
Expand Down Expand Up @@ -263,7 +263,7 @@
]
},
{
"object":"block",
"object":"inline",
"type":"variable",
"data":{
"id":"deliverable",
Expand All @@ -281,7 +281,7 @@
]
},
{
"object":"block",
"object":"inline",
"type":"variable",
"data":{
"id":"shipper",
Expand All @@ -299,7 +299,7 @@
]
},
{
"object":"block",
"object":"inline",
"type":"variable",
"data":{
"id":"deliverable",
Expand Down Expand Up @@ -361,7 +361,7 @@
]
},
{
"object":"block",
"object":"inline",
"type":"variable",
"data":{
"id":"deliverable",
Expand All @@ -379,7 +379,7 @@
]
},
{
"object":"block",
"object":"inline",
"type":"variable",
"data":{
"id":"shipper",
Expand All @@ -397,7 +397,7 @@
]
},
{
"object":"block",
"object":"inline",
"type":"variable",
"data":{
"id":"attachment",
Expand Down
4 changes: 2 additions & 2 deletions packages/markdown-slate/src/SlateTransformer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ describe('slate', () => {
'marks': []
},
{
'object': 'block',
'object': 'inline',
'type': 'variable',
'data': {
'id': 'foo',
Expand Down Expand Up @@ -136,7 +136,7 @@ describe('slate', () => {
'marks': []
},
{
'object': 'block',
'object': 'inline',
'type': 'computed',
'data': {
'value': 'bar'
Expand Down
4 changes: 2 additions & 2 deletions packages/markdown-slate/src/ToSlateVisitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class ToSlateVisitor {
break;
case 'Variable':
result = {
object: 'block',
object: 'inline',
type: 'variable',
data: {
id: thing.id,
Expand All @@ -160,7 +160,7 @@ class ToSlateVisitor {
break;
case 'ComputedVariable':
result = {
object: 'block',
object: 'inline',
type: 'computed',
data: {
value: thing.value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
"value": "%22Party%20A%22",
},
"nodes": Array [],
"object": "block",
"object": "inline",
"type": "variable",
},
Object {
Expand All @@ -317,7 +317,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
"value": "%22Party%20B%22",
},
"nodes": Array [],
"object": "block",
"object": "inline",
"type": "variable",
},
Object {
Expand All @@ -336,7 +336,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
"value": "%22Widgets%22",
},
"nodes": Array [],
"object": "block",
"object": "inline",
"type": "variable",
},
Object {
Expand All @@ -350,7 +350,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
"value": "%22Party%20B%22",
},
"nodes": Array [],
"object": "block",
"object": "inline",
"type": "variable",
},
Object {
Expand All @@ -364,7 +364,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
"value": "%22Party%20A%22",
},
"nodes": Array [],
"object": "block",
"object": "inline",
"type": "variable",
},
Object {
Expand All @@ -378,7 +378,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
"value": "%22Widgets%22",
},
"nodes": Array [],
"object": "block",
"object": "inline",
"type": "variable",
},
Object {
Expand All @@ -404,7 +404,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
"value": "%22Party%20B%22",
},
"nodes": Array [],
"object": "block",
"object": "inline",
"type": "variable",
},
Object {
Expand All @@ -418,7 +418,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
"value": "10",
},
"nodes": Array [],
"object": "block",
"object": "inline",
"type": "variable",
},
Object {
Expand All @@ -442,7 +442,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
"value": "%22Widgets%22",
},
"nodes": Array [],
"object": "block",
"object": "inline",
"type": "variable",
},
Object {
Expand All @@ -456,7 +456,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
"value": "%22Party%20A%22",
},
"nodes": Array [],
"object": "block",
"object": "inline",
"type": "variable",
},
Object {
Expand All @@ -470,7 +470,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
"value": "%22Widgets%22",
},
"nodes": Array [],
"object": "block",
"object": "inline",
"type": "variable",
},
Object {
Expand Down Expand Up @@ -516,7 +516,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
"value": "%22Widgets%22",
},
"nodes": Array [],
"object": "block",
"object": "inline",
"type": "variable",
},
Object {
Expand All @@ -530,7 +530,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
"value": "%22Party%20A%22",
},
"nodes": Array [],
"object": "block",
"object": "inline",
"type": "variable",
},
Object {
Expand All @@ -544,7 +544,7 @@ Acceptance Criteria. The \\"Acceptance Criteria\\" are the specifications the \\
"value": "%22Attachment%20X%22",
},
"nodes": Array [],
"object": "block",
"object": "inline",
"type": "variable",
},
Object {
Expand Down
Loading

0 comments on commit 6ed3d56

Please sign in to comment.