File: test.js

package info (click to toggle)
node-redent 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 100 kB
  • sloc: makefile: 2; sh: 2
file content (7 lines) | stat: -rw-r--r-- 180 bytes parent folder | download
1
2
3
4
5
6
7
import test from 'ava';
import m from './';

test(t => {
	t.is(m('\n  foo\n    bar\n', 1), '\n foo\n   bar\n');
	t.is(m('\n foo\n  bar\n', 5, '-'), '\n-----foo\n----- bar\n');
});