Add ability to output the CLI in JSON format #124
1 changed files with 2 additions and 2 deletions
|
@ -105,7 +105,7 @@ describe('json', () => {
|
||||||
const json = JSON.parse(result.stdout);
|
const json = JSON.parse(result.stdout);
|
||||||
|
|
||||||
expect(json).toBeDefined();
|
expect(json).toBeDefined();
|
||||||
});
|
}, 5000);
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('sort', () => {
|
describe('sort', () => {
|
||||||
|
@ -134,7 +134,7 @@ describe('sort', () => {
|
||||||
|
|
||||||
expect(result.code).toBe(1);
|
expect(result.code).toBe(1);
|
||||||
expect(result.stderr).toBe("error: option '--sort <sort>' argument 'invalid' is invalid. Allowed choices are hot, new, top.\n");
|
expect(result.stderr).toBe("error: option '--sort <sort>' argument 'invalid' is invalid. Allowed choices are hot, new, top.\n");
|
||||||
});
|
}, 5000);
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('query-metadata', () => {
|
describe('query-metadata', () => {
|
||||||
|
|
Loading…
Reference in a new issue