mirror of
https://github.com/documentationjs/documentation.git
synced 2026-01-18 14:17:30 +00:00
18 lines
340 B
JavaScript
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();
|
|
});
|