indent.js
Version:
Fast minimalistic pure indentation of JavaScript, CSS, and HTML.
20 lines (18 loc) • 362 B
JavaScript
var sut = require('../../lib/indent').html;
var expect = require('chai').expect;
var ts = ' ';
describe('doctype', function () {
it('basic doctype', function () {
var expected = `
<html>
<body>
\t<script></script>
</body>
</html>
`;
expect(sut(expected)).to.equal(
expected.replace(/\r*\n/g, '\r\n'));
});
});