Skip to content

Commit 44ab34a

Browse files
committed
update unit test snapshots
1 parent 6002ba2 commit 44ab34a

18 files changed

+461
-461
lines changed

src/extension/__tests__/__snapshots__/extension.ts.snap

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`Extension entry point should create a language client 1`] = `
4-
Array [
4+
[
55
"Stylelint",
6-
Object {
7-
"debug": Object {
6+
{
7+
"debug": {
88
"module": "mock-path",
9-
"options": Object {
10-
"execArgv": Array [
9+
"options": {
10+
"execArgv": [
1111
"--nolazy",
1212
"--inspect=6004",
1313
],
1414
},
1515
},
16-
"run": Object {
16+
"run": {
1717
"module": "mock-path",
1818
},
1919
},
20-
Object {
20+
{
2121
"diagnosticCollectionName": "Stylelint",
22-
"documentSelector": Array [
23-
Object {
22+
"documentSelector": [
23+
{
2424
"scheme": "file",
2525
},
26-
Object {
26+
{
2727
"scheme": "untitled",
2828
},
2929
],
30-
"synchronize": Object {
31-
"fileEvents": Array [
30+
"synchronize": {
31+
"fileEvents": [
3232
undefined,
3333
undefined,
3434
],
@@ -38,11 +38,11 @@ Array [
3838
`;
3939

4040
exports[`Extension entry point with an active text editor, should send auto-fix commands to the language server 1`] = `
41-
Array [
41+
[
4242
"executeCommand",
43-
Object {
44-
"arguments": Array [
45-
Object {
43+
{
44+
"arguments": [
45+
{
4646
"uri": "file:///path/to/file.ts",
4747
"version": 1,
4848
},

src/extension/__tests__/extension.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,12 @@ describe('Extension entry point', () => {
119119

120120
expect(mockWorkspace.createFileSystemWatcher).toHaveBeenCalledTimes(2);
121121
expect(mockWorkspace.createFileSystemWatcher.mock.calls[0]).toMatchInlineSnapshot(`
122-
Array [
122+
[
123123
"**/.stylelintrc{,.js,.json,.yaml,.yml}",
124124
]
125125
`);
126126
expect(mockWorkspace.createFileSystemWatcher.mock.calls[1]).toMatchInlineSnapshot(`
127-
Array [
127+
[
128128
"**/{stylelint.config.js,.stylelintignore}",
129129
]
130130
`);
@@ -142,7 +142,7 @@ describe('Extension entry point', () => {
142142
expect(mockCommands.registerCommand).toHaveBeenCalled();
143143
// cspell:disable
144144
expect(mockCommands.registerCommand.mock.calls[0]).toMatchInlineSnapshot(`
145-
Array [
145+
[
146146
"stylelint.executeAutofix",
147147
[Function],
148148
]
@@ -186,7 +186,7 @@ describe('Extension entry point', () => {
186186
expect(sendRequest).toHaveBeenCalledTimes(1);
187187
expect(mockWindow.showErrorMessage).toHaveBeenCalledTimes(1);
188188
expect(mockWindow.showErrorMessage.mock.calls[0]).toMatchInlineSnapshot(`
189-
Array [
189+
[
190190
"Failed to apply Stylelint fixes to the document. Please consider opening an issue with steps to reproduce.",
191191
]
192192
`);
@@ -203,7 +203,7 @@ describe('Extension entry point', () => {
203203

204204
expect(mockCommands.registerCommand).toHaveBeenCalled();
205205
expect(mockCommands.registerCommand.mock.calls[1]).toMatchInlineSnapshot(`
206-
Array [
206+
[
207207
"stylelint.restart",
208208
[Function],
209209
]
@@ -336,12 +336,12 @@ describe('Extension entry point', () => {
336336

337337
expect(mockWindow.showErrorMessage).toHaveBeenCalledTimes(2);
338338
expect(mockWindow.showErrorMessage.mock.calls[0]).toMatchInlineSnapshot(`
339-
Array [
339+
[
340340
"Stylelint: Problem!",
341341
]
342342
`);
343343
expect(mockWindow.showErrorMessage.mock.calls[1]).toMatchInlineSnapshot(`
344-
Array [
344+
[
345345
"Stylelint: String problem!",
346346
]
347347
`);
@@ -366,12 +366,12 @@ describe('Extension entry point', () => {
366366

367367
expect(mockWindow.showErrorMessage).toHaveBeenCalledTimes(2);
368368
expect(mockWindow.showErrorMessage.mock.calls[0]).toMatchInlineSnapshot(`
369-
Array [
369+
[
370370
"Stylelint: Problem!",
371371
]
372372
`);
373373
expect(mockWindow.showErrorMessage.mock.calls[1]).toMatchInlineSnapshot(`
374-
Array [
374+
[
375375
"Stylelint: String problem!",
376376
]
377377
`);

0 commit comments

Comments
 (0)