presentations/highlight-js/test/special/languageAlias.js

21 lines
565 B
JavaScript
Raw Permalink Normal View History

2018-12-07 08:48:05 -06:00
'use strict';
let _ = require('lodash');
let utility = require('../utility');
describe('language alias', function() {
before(function() {
const testHTML = document.querySelectorAll('#language-alias .hljs');
this.blocks = _.map(testHTML, 'innerHTML');
});
it('should highlight as aliased language', function() {
const filename = utility.buildPath('fixtures', 'expect',
'languagealias.txt'),
actual = this.blocks[0];
return utility.expectedFile(filename, 'utf-8', actual);
});
});