mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-12 18:52:50 +00:00
13 lines
329 B
JavaScript
13 lines
329 B
JavaScript
'use strict';
|
|
|
|
module.exports = function (t, a) {
|
|
var foo = 'raz', bar = 'dwa'
|
|
, fn = function (a, b) { return this + a + b + foo + bar; }
|
|
, result;
|
|
|
|
result = t(fn, 3);
|
|
a(result.call('marko', 'el', 'fe'), 'markoelferazdwa', "Content");
|
|
a(result.length, 3, "Length");
|
|
a(result.prototype, fn.prototype, "Prototype");
|
|
};
|