mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
Del: Js regex highlight
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
var tool = eruda.get('sources'),
|
||||
$tool = $('.eruda-sources');
|
||||
|
||||
describe('highlight code', function ()
|
||||
{
|
||||
it('js', function ()
|
||||
{
|
||||
tool.set('js', '/* test */');
|
||||
expect($tool.find('.eruda-content')).toContainHtml('<span style="color:#63a35c;">/* test */</span>');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user