1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 03:50:04 +02:00

New updates and modules

This commit is contained in:
DanieL 2022-07-15 11:08:01 -03:00
parent 4d5d408898
commit 0abf0f90f6
959 changed files with 364301 additions and 17493 deletions

32
node_modules/argsarray/test/test.scope.js generated vendored Normal file
View file

@ -0,0 +1,32 @@
'use strict';
var getArgs = require('../');
var test = require('tape');
test('scope should be the same', function (t) {
t.test('with call', function (t) {
var foo = {};
var ourFunc = getArgs(function (args) {
t.deepEquals(args, [1, 2, 3, 4], 'args should be right');
t.strictEquals(this, foo, 'scope should be the same');
t.end();
});
ourFunc.call(foo, 1, 2, 3, 4);
});
test('with apply', function (t) {
var foo = {};
var ourFunc = getArgs(function (args) {
t.deepEquals(args, [1, 2, 3, 4], 'args should be right');
t.strictEquals(this, foo, 'scope should be the same');
t.end();
});
ourFunc.apply(foo, [1, 2, 3, 4]);
});
test('with bind', function (t) {
var foo = {};
var ourFunc = getArgs(function (args) {
t.deepEquals(args, [1, 2, 3, 4], 'args should be right');
t.strictEquals(this, foo, 'scope should be the same');
t.end();
}).bind(foo, 1);
ourFunc(2, 3, 4);
});
});