Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgoebel committed Dec 20, 2019
1 parent c95874b commit 9268eb0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/markup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function testLanguage(language, {testDir}) {
describe(language, function() {
const where = testDir ?
path.join(testDir, '*.expect.txt') :
utility.buildPath('markup', language, '*.expect.txt')
utility.buildPath('markup', language, '*.expect.txt');
const filePath = where,
filenames = glob.sync(filePath);

Expand All @@ -37,16 +37,15 @@ function testLanguage(language, {testDir}) {
}

describe('highlight() markup', async () => {
let languages,thirdPartyLanguages;
before(async function() {
const markupPath = utility.buildPath('markup');

if (!process.env.EXTRA) {
languages = await fs.readdir(markupPath)
if (!process.env.ONLY_EXTRA) {
let languages = await fs.readdir(markupPath);
languages.forEach(testLanguage);
}

thirdPartyLanguages = await getThirdPartyLanguages();
let thirdPartyLanguages = await getThirdPartyLanguages();
return thirdPartyLanguages.forEach((l) => testLanguage(l.name,{testDir: l.markupTestPath}));
})

Expand Down

0 comments on commit 9268eb0

Please sign in to comment.