UNPKG

@zkochan/pnpm

Version:

A fast implementation of npm install

28 lines (22 loc) 777 B
'use strict' const fixture = require('../support/fixture') const buildMs = require('../support/build_ms') describe('fixture/with anchors:', function () { let fx = fixture('with-anchors') buildMs(fx.path('metalsmith.js')) let data describe('index.html', function () { before(function () { data = fx.read('_docpress/index.html').toLowerCase() }) it('renders as html', function () { expect(data).toInclude('<!doctype html>') expect(data).toInclude('markdown-body') expect(data).toInclude('toc-menu') expect(data).toInclude('body page-index') // slug }) it('links to anchored versions', function () { expect(data).toInclude('<a href="index.html#two" class="link title link-index-2">intro 2</a>') }) }) })