import { Block } from '../../../types'; import * as fs from 'fs-extra'; import * as path from 'path'; const DIRNAME = __dirname.replace('/out/', '/src/'); describe('Block', () => { it('parseAll', () => { const template = fs.readFileSync(path.join(DIRNAME, 'example.dashboard.html'), 'utf8'); const block = new Block({ template }); block.parseAll(); const obj = { aaa: block.$html }; }); });