Del: Js regex highlight

This commit is contained in:
surunzi
2017-01-14 21:27:37 +08:00
parent 63834c04fd
commit fb7fc34d2f
2 changed files with 16 additions and 6 deletions

View File

@@ -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>');
});
});