documentation/test/lib/highlight.js
2015-09-26 13:23:58 -04:00

18 lines
340 B
JavaScript

'use strict';
var test = require('tap').test,
highlight = require('../../lib/highlight');
test('processes examples', function (t) {
t.deepEqual(highlight({
examples: [
'var x = 1;'
]
}), {
examples: [
'<span class="hljs-keyword">var</span> x = <span class="hljs-number">1</span>;'
]
});
t.end();
});