Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/node-red/node_modules/uri-path/test/ drwxr-xr-x | |
| Viewing file: Select action/file-type: 'use strict';
var URIpath = require('..');
require('should');
describe('uri-path', function() {
it('should convert relative file system paths into properly encoded URIs', function() {
var paths = {
// file system path: expected URI path
'../abc/@#$%¨&()[]{}-_=+ß/môòñ 月 قمر': '../abc/%40%23%24%25%C2%A8%26()%5B%5D%7B%7D-_%3D%2B%C3%9F/m%C3%B4%C3%B2%C3%B1%20%E6%9C%88%20%D9%82%D9%85%D8%B1',
'a\\b\\c': 'a/b/c',
};
Object.keys(paths).forEach(function(filePath) {
URIpath(filePath).should.equal(paths[filePath]);
});
});
});
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.004 ]-- |