Software: Apache/2.2.22 (Debian). PHP/5.6.36 uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) Safe-mode: OFF (not secure) /home/h33678/data/www/it-man.ztu.edu.ua/node_modules/clone-stats/ drwxr-xr-x |
Viewing file: Select action/file-type: var test = require('tape') var clone = require('./') var fs = require('fs') test('file', function(t) { compare(t, fs.statSync(__filename)) t.end() }) test('directory', function(t) { compare(t, fs.statSync(__dirname)) t.end() }) function compare(t, stat) { var copy = clone(stat) t.deepEqual(stat, copy, 'clone has equal properties') t.ok(stat instanceof fs.Stats, 'original is an fs.Stat') t.ok(copy instanceof fs.Stats, 'copy is an fs.Stat') ;['isDirectory' , 'isFile' , 'isBlockDevice' , 'isCharacterDevice' , 'isSymbolicLink' , 'isFIFO' , 'isSocket' ].forEach(function(method) { t.equal( stat[method].call(stat) , copy[method].call(copy) , 'equal value for stat.' + method + '()' ) }) } |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0136 ]-- |