to-string-tokens.js 379 B

123456789101112
  1. 'use strict';
  2. module.exports = function (t, a) {
  3. a.deep(t.call(function (a, b) { return this[a] + this[b]; }),
  4. { args: 'a, b', body: ' return this[a] + this[b]; ' });
  5. a.deep(t.call(function () {}),
  6. { args: '', body: '' });
  7. a.deep(t.call(function (raz) {}),
  8. { args: 'raz', body: '' });
  9. a.deep(t.call(function () { Object(); }),
  10. { args: '', body: ' Object(); ' });
  11. };