/* eslint-disable space-before-function-paren, no-var, no-return-assign, quotes */ import $ from 'jquery'; import syntaxHighlight from '~/syntax_highlight'; describe('Syntax Highlighter', function() { var stubUserColorScheme; stubUserColorScheme = function(value) { if (window.gon == null) { window.gon = {}; } return window.gon.user_color_scheme = value; }; describe('on a js-syntax-highlight element', function() { beforeEach(function() { return setFixtures('
'); }); return it('applies syntax highlighting', function() { stubUserColorScheme('monokai'); syntaxHighlight($('.js-syntax-highlight')); return expect($('.js-syntax-highlight')).toHaveClass('monokai'); }); }); return describe('on a parent element', function() { beforeEach(function() { return setFixtures("