Skip to content

Commit 2954f9b

Browse files
committed
Rewrite unexpected-markdown to remove its duplicate runtime.
As evaldown evolved and the docs started to rely on its new behaviour problems arose with unexpected-markdown.In particular, this module attempted to replicate the behaviour of snippet evaluation and was effectively a separate implementation of it which meant it became out of sync. In order to avoid this situation going forward, rewrite the module to make use of the same runtime and merely assert that afterwards the evaluated result matches the state of the on-disk markdown file.
1 parent e926faa commit 2954f9b

4 files changed

+360
-846
lines changed

bootstrap-unexpected-markdown.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/* global expect:true */
2+
expect = require('unexpected').clone();
3+
expect.output.preferredWidth = 80;

0 commit comments

Comments
 (0)