blob: cd7a29af8dd1fe364a657f4dcd88647b4ce41f3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
const fs = require('fs');
const path = require('path');
const expect = require('expect');
const page = require('../src').page;
describe('Page parsing', () => {
let LEXED;
before(() => {
const CONTENT = fs.readFileSync(path.join(__dirname, './fixtures/PAGE.adoc'), 'utf8');
LEXED = page(CONTENT);
});
it('should gen content', () => {
expect(LEXED.content).toExist();
});
});
|