Compare commits
2 commits
e7f693982f
...
ebf270f2bb
Author | SHA1 | Date | |
---|---|---|---|
ebf270f2bb | |||
af30ab5ea7 |
2 changed files with 11 additions and 0 deletions
|
@ -8,6 +8,15 @@ export default class OutputHelper {
|
|||
const outputLines: string[] = [];
|
||||
|
||||
if (options.json) {
|
||||
if (options.queryMetadata != null) {
|
||||
return JSON.stringify({
|
||||
...result,
|
||||
query: {
|
||||
...response.Query,
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
return JSON.stringify(result);
|
||||
}
|
||||
|
||||
|
|
|
@ -102,4 +102,6 @@ describe("GenerateOutput", () => {
|
|||
// Assert
|
||||
expect(result).toMatchSnapshot();
|
||||
});
|
||||
|
||||
test.todo("GIVEN options.queryMetadata AND options.json is supplied, EXPECT query metadata to be in JSON format")
|
||||
});
|
Loading…
Reference in a new issue