Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
leops committed Oct 3, 2022
1 parent ccd5b55 commit fe8aa98
Show file tree
Hide file tree
Showing 5 changed files with 181 additions and 92 deletions.
149 changes: 99 additions & 50 deletions npm/backend-jsonrpc/src/workspace.ts

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

60 changes: 40 additions & 20 deletions npm/rome/tests/daemon/__snapshots__/formatContent.test.mjs.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,56 @@
exports[`Rome Deamon formatter > should not format and have diagnostics > syntax error 1`] = `
[
{
"children": [],
"code": "parse",
"file_id": 0,
"footers": [],
"primary": {
"msg": [
"advices": {
"advices": [
{
"content": "",
"elements": [],
"Frame": {
"path": {
"File": {
"PathAndId": {
"file_id": 0,
"path": "example.js",
},
},
},
"source_code": null,
"span": [
11,
12,
],
},
},
],
"severity": "Error",
"span": {
"file": 0,
"range": [
11,
12,
],
},
"category": "parse",
"description": "expected a name for the function in a function declaration, but found none",
"location": {
"path": {
"File": {
"PathAndId": {
"file_id": 0,
"path": "example.js",
},
},
},
"source_code": null,
"span": [
11,
12,
],
},
"severity": "Error",
"suggestions": [],
"summary": null,
"tag": null,
"title": [
"message": [
{
"content": "expected a name for the function in a function declaration, but found none",
"elements": [],
},
],
"severity": "Error",
"source": null,
"tags": [],
"verbose_advices": {
"advices": [],
},
},
]
`;
2 changes: 1 addition & 1 deletion npm/rome/tests/daemon/formatContent.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe("Rome Deamon formatter", async () => {

expect(result.content).toEqual(content);
expect(result.diagnostics).toHaveLength(1);
expect(result.diagnostics[0].title[0].content).toContain(
expect(result.diagnostics[0].description).toContain(
"expected a name for the function in a function declaration, but found none",
);
expect(result.diagnostics).toMatchSnapshot("syntax error");
Expand Down
60 changes: 40 additions & 20 deletions npm/rome/tests/wasm/__snapshots__/formatContent.test.mjs.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,56 @@
exports[`Rome WebAssembly formatContent > should not format and have diagnostics > syntax error 1`] = `
[
{
"children": [],
"code": "parse",
"file_id": 0,
"footers": [],
"primary": {
"msg": [
"advices": {
"advices": [
{
"content": "",
"elements": [],
"Frame": {
"path": {
"File": {
"PathAndId": {
"file_id": 0,
"path": "example.js",
},
},
},
"source_code": null,
"span": [
11,
12,
],
},
},
],
"severity": "Error",
"span": {
"file": 0,
"range": [
11,
12,
],
},
"category": "parse",
"description": "expected a name for the function in a function declaration, but found none",
"location": {
"path": {
"File": {
"PathAndId": {
"file_id": 0,
"path": "example.js",
},
},
},
"source_code": null,
"span": [
11,
12,
],
},
"severity": "Error",
"suggestions": [],
"summary": null,
"tag": null,
"title": [
"message": [
{
"content": "expected a name for the function in a function declaration, but found none",
"elements": [],
},
],
"severity": "Error",
"source": null,
"tags": [],
"verbose_advices": {
"advices": [],
},
},
]
`;
2 changes: 1 addition & 1 deletion npm/rome/tests/wasm/formatContent.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe("Rome WebAssembly formatContent", () => {

expect(result.content).toEqual(content);
expect(result.diagnostics).toHaveLength(1);
expect(result.diagnostics[0].title[0].content).toContain(
expect(result.diagnostics[0].description).toContain(
"expected a name for the function in a function declaration, but found none",
);
expect(result.diagnostics).toMatchSnapshot("syntax error");
Expand Down

0 comments on commit fe8aa98

Please sign in to comment.