const Vue = require('vue/dist/vue'); const VueHighlightJS = require('../index'); Vue.use(VueHighlightJS); test('highlighting pre-defined code', () => { const template = `
// Static source code
function(test) {
console.log(test)
}
123
');
});
});
it('should updated highlighted block when updating code without any content', () => {
vm.sourcecode = '';
Vue.nextTick(function () {
result = vm.$el.innerHTML;
// console.log('result', result);
expect(result).toEqual('
');
});
});
});