fix(core): update

This commit is contained in:
2019-09-04 14:13:42 +02:00
parent d6cf698327
commit 67ef49ddce
9 changed files with 1141 additions and 369 deletions

View File

@ -15,11 +15,15 @@ testKey2: testValue2
expect(parsedString.data).to.have.property('testKey2', 'testValue2');
expect(parsedString.orig.toString()).to.equal(testString);
});
tap.test('.stringify', async () => {
tap.test('should stringify data', async () => {
let testStringPure = `# some markdown heading\nsome first row`;
let testStringCombined = testSmartfm.stringify(testStringPure, { testData: 'hi' });
let resultString = '---\ntestData: hi\n---\n# some markdown heading\nsome first row\n';
expect(resultString).to.equal(testStringCombined);
});
tap.test('should parse a normal frontmatter file', async () => {
});
tap.start();