Skip to content

Commit

Permalink
Feat/example page test option (nhn#372)
Browse files Browse the repository at this point in the history
* change option globalErrorLogVariable

* some refactoring
  • Loading branch information
jinwoo-kim-nhn authored Apr 1, 2020
1 parent 885ab5c commit 2ba744c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions exampleTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ function printErrorLog(errorBrowsersInfo) {
* Get Examples Url
*/
function getTestUrls() {
if (!filePath) {
throw Error('not exist examples path at tuidoc.config.json');
}

return fs.readdirSync(filePath).reduce((urls, fileName) => {
if (/html$/.test(fileName)) {
urls.push(`/${filePath}/${fileName}`);
Expand Down

0 comments on commit 2ba744c

Please sign in to comment.