Skip to content

Commit

Permalink
Remove the now unusued createExpect() function.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjeffburke committed May 2, 2020
1 parent 72762c1 commit e926faa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
5 changes: 0 additions & 5 deletions lib/convertMarkdownToMocha.js
Expand Up @@ -7,7 +7,6 @@ var { Markdown } = require('evaldown');

var locateBabelrc = require('./locateBabelrc');
var cleanStackTrace = require('./cleanStackTrace');
var createExpect = require('./createExpect');

var transpile;
var hasBabel = false;
Expand Down Expand Up @@ -128,10 +127,6 @@ function findCodeBlocks(mdSrc) {
var codeBlocks = [];
const snippets = new Markdown(mdSrc, {
marker: 'unexpected-markdown',
transpileFn: hasBabel ? transpile : null,
customGlobals: {
expect: () => createExpect(),
},
}).getSnippets();
for (const codeBlock of snippets.items) {
codeBlock.lineNumber = 1 + countLinesUntilIndex(mdSrc, codeBlock.index);
Expand Down
23 changes: 0 additions & 23 deletions lib/createExpect.js

This file was deleted.

0 comments on commit e926faa

Please sign in to comment.