From ca26c648c2a62bccefa0daba462b3c7780da75fe Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 7 Nov 2020 11:30:21 -0500 Subject: [PATCH] Test link hrefs (#999) * Add validatePath function * Validate s --- dev/lint/html-scripts.js | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/dev/lint/html-scripts.js b/dev/lint/html-scripts.js index 5aef7599..ae518252 100644 --- a/dev/lint/html-scripts.js +++ b/dev/lint/html-scripts.js @@ -31,23 +31,28 @@ function lstatSyncSafe(fileName) { } } +function validatePath(src, fileName, extDir) { + assert.ok(typeof src === 'string', `