Skip to content

Commit 0a41713

Browse files
committed
Add new test
And rename test file.
1 parent c0e3988 commit 0a41713

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { expect } from 'chai';
22
import { parseResponse } from '../../../remote-queries/run-remote-query';
33

4-
describe('run-remote-queries', () => {
4+
describe('run-remote-query', () => {
55
describe('parseResponse', () => {
66
it('should parse a successful response', () => {
77
const result = parseResponse('org', 'name', {
@@ -18,6 +18,17 @@ describe('run-remote-queries', () => {
1818
);
1919
});
2020

21+
it('should parse a response with no repositories queried', () => {
22+
const result = parseResponse('org', 'name', {
23+
workflow_run_id: 123,
24+
});
25+
26+
expect(result.popupMessage).to.equal('Successfully scheduled runs. [Click here to see the progress](https://github.com/org/name/actions/runs/123).');
27+
expect(result.logMessage).to.equal(
28+
'Successfully scheduled runs. See https://github.com/org/name/actions/runs/123.'
29+
);
30+
});
31+
2132
it('should parse a response with invalid repos', () => {
2233
const result = parseResponse('org', 'name', {
2334
workflow_run_id: 123,

0 commit comments

Comments
 (0)