indent.js 329 B

12345678
  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", "Multi-line");
  6. a(t.call("ra\n\nzz\n", "\t"), "\tra\n\n\tzz\n", "Don't touch empty lines");
  7. };