Skip to content

Commit

Permalink
test: remove only
Browse files Browse the repository at this point in the history
  • Loading branch information
kellyjosephprice committed Dec 5, 2024
1 parent e37096f commit f620b3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion __tests__/lib/mdast/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('mdast transformer', async () => {
expect(mdast(variablesMdx)).toStrictEqualExceptPosition(variablesJson);

Check failure on line 31 in __tests__/lib/mdast/index.test.ts

View workflow job for this annotation

GitHub Actions / Test (lts/-1, 16)

__tests__/lib/mdast/index.test.ts > mdast transformer > parses variables

Error: Expected two trees to be equal! - Expected + Received Object { "children": Array [ Object { "children": Array [ Object { "type": "text", "value": "Hello, ", }, Object { "data": Object { - "hName": "Variable", - "hProperties": Object { + "estree": Object { + "body": Array [ + Object { + "end": 17, + "expression": Node { + "computed": false, + "end": 17, + "loc": Object { + "end": Object { + "column": 17, + "line": 1, + "offset": 17, + }, + "start": Object { + "column": 8, + "line": 1, + "offset": 8, + }, + }, + "object": Node { + "end": 12, + "loc": Object { + "end": Object { + "column": 12, + "line": 1, + "offset": 12, + }, + "start": Object { + "column": 8, + "line": 1, + "offset": 8, + }, + }, + "name": "user", + "range": Array [ + 8, + 12, + ], + "start": 8, + "type": "Identifier", + }, + "optional": false, + "property": Node { + "end": 17, + "loc": Object { + "end": Object { + "column": 17, + "line": 1, + "offset": 17, + }, + "start": Object { + "column": 13, + "line": 1, + "offset": 13, + }, + }, "name": "name", + "range": Array [ + 13, + 17, + ], + "start": 13, + "type": "Identifier", }, + "range": Array [ + 8, + 17, + ], + "start": 8, + "type": "MemberExpression", }, - "type": "readme-variable", - "value": "{user.name}", + "loc": Object { + "end": Object { + "column": 17, + "line": 1, + "offset": 17, + }, + "start": Object { + "column": 8, + "line": 1, + "offset": 8, + }, + }, + "range": Array [ + 8, + 17, + ], + "start": 8, + "type": "ExpressionStatement", + }, + ], + "comments": Array [], + "end": 17, + "loc": Object { + "end": Object { + "column": 17, + "line": 1, + "offset": 17, + }, + "start": Object { + "column": 8, + "line": 1, + "offset": 8, + }, + }, + "range": Array [ + 8,

Check failure on line 31 in __tests__/lib/mdast/index.test.ts

View workflow job for this annotation

GitHub Actions / Test (lts/-1, 18)

__tests__/lib/mdast/index.test.ts > mdast transformer > parses variables

Error: Expected two trees to be equal! - Expected + Received Object { "children": Array [ Object { "children": Array [ Object { "type": "text", "value": "Hello, ", }, Object { "data": Object { - "hName": "Variable", - "hProperties": Object { + "estree": Object { + "body": Array [ + Object { + "end": 17, + "expression": Node { + "computed": false, + "end": 17, + "loc": Object { + "end": Object { + "column": 17, + "line": 1, + "offset": 17, + }, + "start": Object { + "column": 8, + "line": 1, + "offset": 8, + }, + }, + "object": Node { + "end": 12, + "loc": Object { + "end": Object { + "column": 12, + "line": 1, + "offset": 12, + }, + "start": Object { + "column": 8, + "line": 1, + "offset": 8, + }, + }, + "name": "user", + "range": Array [ + 8, + 12, + ], + "start": 8, + "type": "Identifier", + }, + "optional": false, + "property": Node { + "end": 17, + "loc": Object { + "end": Object { + "column": 17, + "line": 1, + "offset": 17, + }, + "start": Object { + "column": 13, + "line": 1, + "offset": 13, + }, + }, "name": "name", + "range": Array [ + 13, + 17, + ], + "start": 13, + "type": "Identifier", }, + "range": Array [ + 8, + 17, + ], + "start": 8, + "type": "MemberExpression", }, - "type": "readme-variable", - "value": "{user.name}", + "loc": Object { + "end": Object { + "column": 17, + "line": 1, + "offset": 17, + }, + "start": Object { + "column": 8, + "line": 1, + "offset": 8, + }, + }, + "range": Array [ + 8, + 17, + ], + "start": 8, + "type": "ExpressionStatement", + }, + ], + "comments": Array [], + "end": 17, + "loc": Object { + "end": Object { + "column": 17, + "line": 1, + "offset": 17, + }, + "start": Object { + "column": 8, + "line": 1, + "offset": 8, + }, + }, + "range": Array [ + 8,

Check failure on line 31 in __tests__/lib/mdast/index.test.ts

View workflow job for this annotation

GitHub Actions / Test (lts/*, 18)

__tests__/lib/mdast/index.test.ts > mdast transformer > parses variables

Error: Expected two trees to be equal! - Expected + Received Object { "children": Array [ Object { "children": Array [ Object { "type": "text", "value": "Hello, ", }, Object { "data": Object { - "hName": "Variable", - "hProperties": Object { + "estree": Object { + "body": Array [ + Object { + "end": 17, + "expression": Node { + "computed": false, + "end": 17, + "loc": Object { + "end": Object { + "column": 17, + "line": 1, + "offset": 17, + }, + "start": Object { + "column": 8, + "line": 1, + "offset": 8, + }, + }, + "object": Node { + "end": 12, + "loc": Object { + "end": Object { + "column": 12, + "line": 1, + "offset": 12, + }, + "start": Object { + "column": 8, + "line": 1, + "offset": 8, + }, + }, + "name": "user", + "range": Array [ + 8, + 12, + ], + "start": 8, + "type": "Identifier", + }, + "optional": false, + "property": Node { + "end": 17, + "loc": Object { + "end": Object { + "column": 17, + "line": 1, + "offset": 17, + }, + "start": Object { + "column": 13, + "line": 1, + "offset": 13, + }, + }, "name": "name", + "range": Array [ + 13, + 17, + ], + "start": 13, + "type": "Identifier", }, + "range": Array [ + 8, + 17, + ], + "start": 8, + "type": "MemberExpression", }, - "type": "readme-variable", - "value": "{user.name}", + "loc": Object { + "end": Object { + "column": 17, + "line": 1, + "offset": 17, + }, + "start": Object { + "column": 8, + "line": 1, + "offset": 8, + }, + }, + "range": Array [ + 8, + 17, + ], + "start": 8, + "type": "ExpressionStatement", + }, + ], + "comments": Array [], + "end": 17, + "loc": Object { + "end": Object { + "column": 17, + "line": 1, + "offset": 17, + }, + "start": Object { + "column": 8, + "line": 1, + "offset": 8, + }, + }, + "range": Array [ + 8,

Check failure on line 31 in __tests__/lib/mdast/index.test.ts

View workflow job for this annotation

GitHub Actions / Test (latest, 18)

__tests__/lib/mdast/index.test.ts > mdast transformer > parses variables

Error: Expected two trees to be equal! - Expected + Received Object { "children": Array [ Object { "children": Array [ Object { "type": "text", "value": "Hello, ", }, Object { "data": Object { - "hName": "Variable", - "hProperties": Object { + "estree": Object { + "body": Array [ + Object { + "end": 17, + "expression": Node { + "computed": false, + "end": 17, + "loc": Object { + "end": Object { + "column": 17, + "line": 1, + "offset": 17, + }, + "start": Object { + "column": 8, + "line": 1, + "offset": 8, + }, + }, + "object": Node { + "end": 12, + "loc": Object { + "end": Object { + "column": 12, + "line": 1, + "offset": 12, + }, + "start": Object { + "column": 8, + "line": 1, + "offset": 8, + }, + }, + "name": "user", + "range": Array [ + 8, + 12, + ], + "start": 8, + "type": "Identifier", + }, + "optional": false, + "property": Node { + "end": 17, + "loc": Object { + "end": Object { + "column": 17, + "line": 1, + "offset": 17, + }, + "start": Object { + "column": 13, + "line": 1, + "offset": 13, + }, + }, "name": "name", + "range": Array [ + 13, + 17, + ], + "start": 13, + "type": "Identifier", }, + "range": Array [ + 8, + 17, + ], + "start": 8, + "type": "MemberExpression", }, - "type": "readme-variable", - "value": "{user.name}", + "loc": Object { + "end": Object { + "column": 17, + "line": 1, + "offset": 17, + }, + "start": Object { + "column": 8, + "line": 1, + "offset": 8, + }, + }, + "range": Array [ + 8, + 17, + ], + "start": 8, + "type": "ExpressionStatement", + }, + ], + "comments": Array [], + "end": 17, + "loc": Object { + "end": Object { + "column": 17, + "line": 1, + "offset": 17, + }, + "start": Object { + "column": 8, + "line": 1, + "offset": 8, + }, + }, + "range": Array [ + 8,
});

it.only('parses variables with spaces', () => {
it('parses variables with spaces', () => {
// @ts-ignore
expect(mdast(variablesWithSpacesMdx)).toStrictEqualExceptPosition(variablesWithSpacesJson);
});
Expand Down

0 comments on commit f620b3d

Please sign in to comment.