import { expect } from 'chai'
import Up from '../../index'
import { DocumentNode } from '../../SyntaxNodes/DocumentNode'
import { PlainTextNode } from '../../SyntaxNodes/PlainTextNode'
import { ParagraphNode } from '../../SyntaxNodes/ParagraphNode'


describe('1 blank line between paragraphs', () => {
  it('simply provides separation, producing no syntax node itself', () => {
    const text = `
Pokemon Moon has a Mew under a truck.
 \t
Pokemon Sun is a truck.`
    expect(Up.toAst(text)).to.be.eql(
      new DocumentNode([
        new ParagraphNode([new PlainTextNode('Pokemon Moon has a Mew under a truck.')]),
        new ParagraphNode([new PlainTextNode('Pokemon Sun is a truck.')]),
      ]))
  })
})

describe('2 blank lines between paragraphs', () => {
  it('simply provides separation, producing no syntax node itself', () => {
    const text = `
Pokemon Moon has a Mew under a truck.
  \t
\t
Pokemon Sun is a truck.`
    expect(Up.toAst(text)).to.be.eql(
      new DocumentNode([
        new ParagraphNode([new PlainTextNode('Pokemon Moon has a Mew under a truck.')]),
        new ParagraphNode([new PlainTextNode('Pokemon Sun is a truck.')]),
      ]))
  })
})

import { expect } from 'chai'
import Up from '../../index'
import { DocumentNode } from '../../SyntaxNodes/DocumentNode'
import { PlainTextNode } from '../../SyntaxNodes/PlainTextNode'
import { ParagraphNode } from '../../SyntaxNodes/ParagraphNode'


describe('1 blank line between paragraphs', () => {
  it('simply provides separation, producing no syntax node itself', () => {
    const text = `Pokemon Moon has a Mew under a truck.

Pokemon Sun is a truck.`
    expect(Up.toAst(text)).to.be.eql(
      new DocumentNode([
        new ParagraphNode([new PlainTextNode('Pokemon Moon has a Mew under a truck.')]),
        new ParagraphNode([new PlainTextNode('Pokemon Sun is a truck.')]),
      ]))
  })
})

describe('2 blank lines between paragraphs', () => {
  it('simply provides separation, producing no syntax node itself', () => {
    const text = `Pokemon Moon has a Mew under a truck.

\t
Pokemon Sun is a truck.`
    expect(Up.toAst(text)).to.be.eql(
      new DocumentNode([
        new ParagraphNode([new PlainTextNode('Pokemon Moon has a Mew under a truck.')]),
        new ParagraphNode([new PlainTextNode('Pokemon Sun is a truck.')]),
      ]))
  })
})

--- 
+++ 
@@ -7,8 +7,9 @@
 
 describe('1 blank line between paragraphs', () => {
   it('simply provides separation, producing no syntax node itself', () => {
-    const text = `Pokemon Moon has a Mew under a truck.
-
+    const text = `
+Pokemon Moon has a Mew under a truck.
+ \t
 Pokemon Sun is a truck.`
     expect(Up.toAst(text)).to.be.eql(
       new DocumentNode([
@@ -20,8 +21,9 @@
 
 describe('2 blank lines between paragraphs', () => {
   it('simply provides separation, producing no syntax node itself', () => {
-    const text = `Pokemon Moon has a Mew under a truck.
-
+    const text = `
+Pokemon Moon has a Mew under a truck.
+  \t
 \t
 Pokemon Sun is a truck.`
     expect(Up.toAst(text)).to.be.eql(
Improve 2 section separation tests
