Skip to content

Commit 14b1e8d

Browse files
committed
Update test
1 parent 673c3a2 commit 14b1e8d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/hover.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ suite('JSON Hover', () => {
5353
}
5454
};
5555
await testComputeInfo(content, schema, { line: 0, character: 0 }).then((result) => {
56-
assert.deepEqual(result.contents, [MarkedString.fromPlainText('a very special object')]);
56+
assert.deepEqual(result.contents, [MarkedString.fromPlainText('a very special object')]);
5757
});
5858
await testComputeInfo(content, schema, { line: 0, character: 1 }).then((result) => {
5959
assert.deepEqual(result.contents, [MarkedString.fromPlainText('A')]);
@@ -89,13 +89,13 @@ suite('JSON Hover', () => {
8989
}]
9090
};
9191
await testComputeInfo(content, schema, { line: 0, character: 0 }).then((result) => {
92-
assert.deepEqual(result.contents, [MarkedString.fromPlainText('a very special object')]);
92+
assert.deepEqual(result.contents, [MarkedString.fromPlainText('a very special object')]);
9393
});
9494
await testComputeInfo(content, schema, { line: 0, character: 1 }).then((result) => {
9595
assert.deepEqual(result.contents, [MarkedString.fromPlainText('A')]);
9696
});
9797
await testComputeInfo(content, schema, { line: 0, character: 10 }).then((result) => {
98-
assert.deepEqual(result.contents, [MarkedString.fromPlainText('B\n\nIt\'s B')]);
98+
assert.deepEqual(result.contents, [MarkedString.fromPlainText('B\n\nIt\'s B')]);
9999
});
100100
});
101101

@@ -154,10 +154,10 @@ suite('JSON Hover', () => {
154154
};
155155

156156
await testComputeInfo('{ "prop1": "e1', schema, { line: 0, character: 12 }).then(result => {
157-
assert.deepEqual(result.contents, ['line1\n\nline2\n\nline3\n\n\nline4\n']);
157+
assert.deepEqual(result.contents, ['line1\\\nline2\\\n\\\nline3\\\n\\\n\\\nline4']);
158158
});
159159
await testComputeInfo('{ "prop2": "e1', schema, { line: 0, character: 12 }).then(result => {
160-
assert.deepEqual(result.contents, ['line1\n\nline2\r\n\r\nline3']);
160+
assert.deepEqual(result.contents, ['line1\r\\\nline2\r\\\n\r\\\nline3']);
161161
});
162162
});
163163

0 commit comments

Comments
 (0)