<commit_before>require("./spec_helper.js")

describe("Jaml.Node", function() {
  it("renders nothing inside if there's nothing in the node", function(){
    assert.equal("<fooBar></fooBar>\n", new Jaml.Node("fooBar").render())
  })  <commit_msg>test padding<commit_after>require("./spec_helper.js")

describe("Jaml.Node", function() {
  it("renders nothing inside if there's nothing in the node", function(){
    assert.equal("<fooBar></fooBar>\n", new Jaml.Node("fooBar").render())
  })  

  it("properly prepends the specified amount of left padding", function(){
    assert.equal("     <fooBar></fooBar>\n", new Jaml.Node("fooBar").render(5))
  })  
{'fraction_non_alphanumeric': 0.19171779141104295, 'fraction_numerical': 0.0015337423312883436, 'mean_word_length': 4.9363636363636365, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5067187', 'n_tokens_mistral': 211, 'n_tokens_neox': 203, 'n_words': 46}