1
0

indent.js 331 B

123456789
  1. 'use strict';
  2. module.exports = function (t, a) {
  3. a(t.call('ra\nzz', ''), 'ra\nzz', "Empty");
  4. a(t.call('ra\nzz', '\t', 3), '\t\t\tra\n\t\t\tzz', "String repeat");
  5. a(t.call('ra\nzz\nsss\nfff\n', '\t'), '\tra\n\tzz\n\tsss\n\tfff\n',
  6. "Multi-line");
  7. a(t.call('ra\n\nzz\n', '\t'), '\tra\n\n\tzz\n', "Don't touch empty lines");
  8. };