UNPKG

indent.js

Version:

Fast minimalistic pure indentation of JavaScript, CSS, and HTML.

19 lines (18 loc) 378 B
var sut = require('../../lib/indent').html; var expect = require('chai').expect; var ts = ' '; describe('doctype', function () { it('basic doctype', function () { var expected = ` <!DOCTYPE html> <!doctype html> <html> <body> <script></script> </body> </html> `; expect(sut(expected, {tabString: ts})).to.equal( expected.replace(/\r*\n/g, '\r\n')); }); });