describe('.editorconfig', function () { var config = editorconfig.parseSync('.editorconfig'); // eslint-disable-line no-sync it('should have a tab_width of 4', function () { expect(config.tab_width).to.equal(TAB_WIDTH); }); it('should have a charset of utf-8', function () { expect(config.charset).to.equal('utf-8'); }); it('should have an indent_size of 4', function () { expect(config.indent_size).to.equal(TAB_WIDTH); }); it('should have an indent_style of 4', function () { expect(config.indent_style).to.equal('space'); }); it('should have a truthy insert_final_newline value', function () { expect(config.insert_final_newline, 'Should insert final line').to.be.true; }); it('should have a truthy trim_trailing_whitespace', function () { expect(config.trim_trailing_whitespace, 'Should trim trailing whitespace').to.be.true; }); });