BLUE
PHP 7.4.33
Path:
/var/www/receipt-app-backend-bitkit.dk/httpdocs/node_modules/supertest
Run
Logout
Edit File
Size: 1.21 KB
Close
/var/www/receipt-app-backend-bitkit.dk/httpdocs/node_modules/supertest/index.js
Text
Base64
'use strict'; /** * Module dependencies. */ const methods = require('methods'); let http2; try { http2 = require('http2'); // eslint-disable-line global-require } catch (_) { // eslint-disable-line no-empty } const Test = require('./lib/test.js'); const agent = require('./lib/agent.js'); const cookies = require('./lib/cookies'); /** * Test against the given `app`, * returning a new `Test`. * * @param {Function|Server|String} app * @return {Test} * @api public */ module.exports = function(app, options = {}) { const obj = {}; if (typeof app === 'function') { if (options.http2) { if (!http2) { throw new Error( 'supertest: this version of Node.js does not support http2' ); } } } methods.forEach(function(method) { obj[method] = function(url) { var test = new Test(app, method, url, options.http2); if (options.http2) { test.http2(); } return test; }; }); // Support previous use of del obj.del = obj.delete; return obj; }; /** * Expose `Test` */ module.exports.Test = Test; /** * Expose the agent function */ module.exports.agent = agent; /** * Expose cookie assertions */ module.exports.cookies = cookies;
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
lib
DIR
-
drwxr-xr-x
2026-05-06 08:23:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
1.21 KB
lrw-r--r--
2026-05-06 08:23:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LICENSE
1.10 KB
lrw-r--r--
2026-05-06 08:23:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
1.39 KB
lrw-r--r--
2026-05-06 08:23:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
README.md
13.18 KB
lrw-r--r--
2026-05-06 08:23:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).