smartstring/test/test.indent.both.ts
2023-08-18 13:12:25 +02:00

29 lines
592 B
TypeScript

import * as smartstring from '../ts/index.js';
import { tap, expect } from '@push.rocks/tapbundle';
// indent
let testString = `
base
expect be indented
some more
base
indented
`;
// normalize
tap.test('expect normalize a string', async () => {
testString = smartstring.indent.normalize(testString);
console.log(testString);
let zoneNameArg = 'test1';
let destinationIpArg = '111';
});
// indent with prefix
tap.test('expect indent', async () => {
testString = smartstring.indent.indentWithPrefix(testString, '>> ');
console.log(testString);
});
tap.start();