All files index.js

100% Statements 5/5
100% Branches 5/5
100% Functions 1/1
100% Lines 5/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 152x 2x     2x 20x               2x  
const React = require('react');
const codemirror = require('./codemirror.jsx');
 
// eslint-disable-next-line react/display-name
module.exports = (code, lang, opts = { dark: false, tokenizeVariables: false }) =>
  React.createElement(
    'span',
    {
      className: opts.dark ? 'cm-s-tomorrow-night' : 'cm-s-neo',
    },
    codemirror(typeof code === 'string' ? code : '', lang, opts)
  );
 
module.exports.uppercase = require('./uppercase');