Tidy up test

This commit is contained in:
shati-patel
2022-04-21 09:45:10 +01:00
committed by Shati Patel
parent 6676ba99d0
commit 908a862dd1

View File

@@ -4,7 +4,8 @@ import * as fs from 'fs-extra';
import { generateMarkdown } from '../../../../src/remote-queries/remote-queries-markdown-generation';
describe('markdown generation', async function() {
it('for path-problem-query: should generate markdown file for each repo with results', async function() {
describe('for path-problem query', async function() {
it('should generate markdown file for each repo with results', async function() {
const pathProblemQuery = JSON.parse(
await fs.readFile(path.join(__dirname, 'data/interpreted-results/path-problem/path-problem-query.json'), 'utf8')
);
@@ -30,8 +31,10 @@ describe('markdown generation', async function() {
expect(markdownFile1.join('\n')).to.equal(expectedTestOutput1);
expect(markdownFile2.join('\n')).to.equal(expectedTestOutput2);
});
});
it('for problem-query: should generate markdown file for each repo with results', async function() {
describe('for problem query', async function() {
it('should generate markdown file for each repo with results', async function() {
const problemQuery = JSON.parse(
await fs.readFile(path.join(__dirname, 'data/interpreted-results/problem/problem-query.json'), 'utf8')
);
@@ -57,6 +60,7 @@ describe('markdown generation', async function() {
expect(markdownFile1.join('\n')).to.equal(expectedTestOutput1);
expect(markdownFile2.join('\n')).to.equal(expectedTestOutput2);
});
});
});
/**