UNPKG

@zkochan/pnpm

Version:

A fast implementation of npm install

29 lines (23 loc) 612 B
const compile = require('../../index')() describe('index/toc-less:', function () { beforeEach(function (done) { // Mock metalsmith object this.ms = { directory () { return __dirname }, metadata () { return { docs: 'docs' } } } this.files = { 'README.md': { contents: 'hi\n\n# hello\n' } } compile(this.files, this.ms, (err) => { if (err) throw err done() }) }) it('works', function () { expect(this.files['index.html']).toExist() }) it('renders title', function () { expect(this.files['index.html'].title).toEqual('hello') }) })