Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.13
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
nodejs /
fast-glob /
out /
providers /
[ HOME SHELL ]
Name
Size
Permission
Action
filters
[ DIR ]
drwxr-xr-x
matchers
[ DIR ]
drwxr-xr-x
transformers
[ DIR ]
drwxr-xr-x
async.d.ts
470
B
-rw-r--r--
async.js
1013
B
-rw-r--r--
async.spec.d.ts
11
B
-rw-r--r--
async.spec.js
2.86
KB
-rw-r--r--
provider.d.ts
817
B
-rw-r--r--
provider.js
1.95
KB
-rw-r--r--
provider.spec.d.ts
474
B
-rw-r--r--
provider.spec.js
3.74
KB
-rw-r--r--
stream.d.ts
436
B
-rw-r--r--
stream.js
1.17
KB
-rw-r--r--
stream.spec.d.ts
11
B
-rw-r--r--
stream.spec.js
3.64
KB
-rw-r--r--
sync.d.ts
385
B
-rw-r--r--
sync.js
779
B
-rw-r--r--
sync.spec.d.ts
11
B
-rw-r--r--
sync.spec.js
2
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : sync.spec.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const assert = require("assert"); const sinon = require("sinon"); const sync_1 = require("../readers/sync"); const settings_1 = require("../settings"); const tests = require("../tests"); const sync_2 = require("./sync"); class TestProvider extends sync_2.default { constructor(options) { super(new settings_1.default(options)); this._reader = sinon.createStubInstance(sync_1.default); } get reader() { return this._reader; } } function getProvider(options) { return new TestProvider(options); } describe('Providers → ProviderSync', () => { describe('Constructor', () => { it('should create instance of class', () => { const provider = getProvider(); assert.ok(provider instanceof sync_2.default); }); }); describe('.read', () => { it('should return entries for dynamic task', () => { const provider = getProvider(); const task = tests.task.builder().base('.').positive('*').build(); const entry = tests.entry.builder().path('root/file.txt').file().build(); provider.reader.dynamic.returns([entry]); const expected = ['root/file.txt']; const actual = provider.read(task); assert.strictEqual(provider.reader.dynamic.callCount, 1); assert.deepStrictEqual(actual, expected); }); it('should return entries for static task', () => { const provider = getProvider(); const task = tests.task.builder().base('.').static().positive('root/file.txt').build(); const entry = tests.entry.builder().path('root/file.txt').file().build(); provider.reader.static.returns([entry]); const expected = ['root/file.txt']; const actual = provider.read(task); assert.strictEqual(provider.reader.static.callCount, 1); assert.deepStrictEqual(actual, expected); }); }); });
Close