1
0
mirror of synced 2025-11-06 04:21:11 +08:00

Dev: Test

This commit is contained in:
surunzi
2017-11-05 14:35:39 +08:00
parent 6b99b991e3
commit 3219e26eb1
8 changed files with 448 additions and 378 deletions

View File

@@ -1,11 +1,14 @@
var tool = eruda.get('sources'),
$tool = $('.eruda-sources');
describe('highlight code', function ()
describe('sources', function ()
{
it('js', function ()
var tool = eruda.get('sources'),
$tool = $('.eruda-sources');
describe('highlight code', function ()
{
tool.set('js', '/* test */');
expect($tool.find('.eruda-content')).toContainHtml('<span style="color:#63a35c;">/* test */</span>');
it('js', function ()
{
tool.set('js', '/* test */');
expect($tool.find('.eruda-content')).toContainHtml('<span style="color:#63a35c;">/* test */</span>');
});
});
});
});