sanitizePathname: Move to separate module to facilitate reuse

This commit is contained in:
Richard Hansen 2021-05-08 17:40:36 -04:00
parent 926da57e34
commit 0d9476529e
3 changed files with 25 additions and 27 deletions

View file

@ -1,10 +1,8 @@
'use strict';
const Minify = require('../../../node/utils/Minify');
const assert = require('assert').strict;
const path = require('path');
const {sanitizePathname} = Minify.exportedForTestingOnly;
const sanitizePathname = require('../../../node/utils/sanitizePathname');
describe(__filename, function () {
describe('absolute paths rejected', function () {