all these changes

This commit is contained in:
Jake Kasper
2026-04-09 13:19:47 -05:00
parent e83a51a051
commit 65315f36d1
39102 changed files with 7932979 additions and 567 deletions

32
backend/node_modules/supertest/lib/cookies/index.js generated vendored Normal file
View File

@@ -0,0 +1,32 @@
/** Copyright 2015 Gregory Langlais. See LICENSE.txt. */
'use strict';
const Assertion = require('./assertion');
/**
* Construct cookies assertion (function)
*
* @param {null|string|string[]} [secret]
* @param {function(req, res)[]} [asserts] ran within returned assertion function
* @returns {function} assertion
* @constructor
*/
function ExpectCookies(secret, asserts) {
return Assertion(secret, asserts);
}
// build ExpectCookies proxy methods
const assertion = Assertion();
const methods = Object.getOwnPropertyNames(assertion);
methods.forEach(function(method) {
if (typeof assertion[method] === 'function' && typeof Function[method] === 'undefined') {
ExpectCookies[method] = function() {
const newAssertion = Assertion();
return newAssertion[method].apply(newAssertion, arguments);
};
}
});
module.exports = ExpectCookies;