Skip to content

Commit bbe99f4

Browse files
committed
Fix newlines in tests
1 parent 604001d commit bbe99f4

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

extensions/ql-vscode/src/vscode-tests/no-workspace/remote-queries/run-remote-query.test.ts

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe('run-remote-query', () => {
4242
expect(result.popupMessage).to.equal(
4343
['Successfully scheduled runs. [Click here to see the progress](https://github.com/org/name/actions/runs/123).',
4444
'',
45-
'Some repositories could not be scheduled. See extension log for details.'].join('\n')
45+
'Some repositories could not be scheduled. See extension log for details.'].join(os.EOL)
4646
);
4747
expect(result.logMessage).to.equal(
4848
['Successfully scheduled runs. See https://github.com/org/name/actions/runs/123.',
@@ -53,7 +53,7 @@ describe('run-remote-query', () => {
5353
'Some repositories could not be scheduled.',
5454
'',
5555
'Invalid repositories:',
56-
'e/f, g/h'].join('\n')
56+
'e/f, g/h'].join(os.EOL)
5757
);
5858
});
5959

@@ -69,17 +69,19 @@ describe('run-remote-query', () => {
6969
expect(result.popupMessage).to.equal(
7070
['Successfully scheduled runs. [Click here to see the progress](https://github.com/org/name/actions/runs/123).',
7171
'',
72-
'Some repositories could not be scheduled. See extension log for details.'].join('\n')
72+
'Some repositories could not be scheduled. See extension log for details.'].join(os.EOL)
7373
);
7474
expect(result.logMessage).to.equal(
7575
['Successfully scheduled runs. See https://github.com/org/name/actions/runs/123.',
7676
'',
77-
'Repositories queried:\na/b, c/d',
77+
'Repositories queried:',
78+
'a/b, c/d',
7879
'',
7980
'Some repositories could not be scheduled.',
8081
'',
81-
'Repositories without databases:\ne/f, g/h',
82-
'These repositories have been added to the database storage service and we will attempt to create a database for them next time the store is updated.'].join('\n')
82+
'Repositories without databases:',
83+
'e/f, g/h',
84+
'These repositories have been added to the database storage service and we will attempt to create a database for them next time the store is updated.'].join(os.EOL)
8385
);
8486
});
8587

@@ -96,12 +98,13 @@ describe('run-remote-query', () => {
9698
expect(result.popupMessage).to.equal(
9799
['Successfully scheduled runs. [Click here to see the progress](https://github.com/org/name/actions/runs/123).',
98100
'',
99-
'Some repositories could not be scheduled. See extension log for details.'].join('\n')
101+
'Some repositories could not be scheduled. See extension log for details.'].join(os.EOL)
100102
);
101103
expect(result.logMessage).to.equal(
102104
['Successfully scheduled runs. See https://github.com/org/name/actions/runs/123.',
103105
'',
104-
'Repositories queried:\na/b, c/d',
106+
'Repositories queried:',
107+
'a/b, c/d',
105108
'',
106109
'Some repositories could not be scheduled.',
107110
'',
@@ -110,7 +113,7 @@ describe('run-remote-query', () => {
110113
'',
111114
'Repositories without databases:',
112115
'i/j, k/l',
113-
'These repositories have been added to the database storage service and we will attempt to create a database for them next time the store is updated.'].join('\n')
116+
'These repositories have been added to the database storage service and we will attempt to create a database for them next time the store is updated.'].join(os.EOL)
114117
);
115118
});
116119
});

0 commit comments

Comments
 (0)