Skip to content

Commit

Permalink
Rewrite unexpected-markdown to remove its duplicate runtime.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alexjeffburke committed May 2, 2020
1 parent e926faa commit 2954f9b
Show file tree
Hide file tree
Showing 4 changed files with 360 additions and 846 deletions.
3 changes: 3 additions & 0 deletions bootstrap-unexpected-markdown.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/* global expect:true */
expect = require('unexpected').clone();
expect.output.preferredWidth = 80;
Loading

0 comments on commit 2954f9b

Please sign in to comment.