languageAlias.js 565 B

1234567891011121314151617181920
  1. 'use strict';
  2. let _ = require('lodash');
  3. let utility = require('../utility');
  4. describe('language alias', function() {
  5. before(function() {
  6. const testHTML = document.querySelectorAll('#language-alias .hljs');
  7. this.blocks = _.map(testHTML, 'innerHTML');
  8. });
  9. it('should highlight as aliased language', function() {
  10. const filename = utility.buildPath('fixtures', 'expect',
  11. 'languagealias.txt'),
  12. actual = this.blocks[0];
  13. return utility.expectedFile(filename, 'utf-8', actual);
  14. });
  15. });