g6/packages/core/tests/unit/template-spec.ts
2020-12-04 20:47:17 +08:00

11 lines
295 B
TypeScript

describe('template', () => {
const el = document.createElement('div');
el.id = 'test-div-id';
el.innerHTML = 'hello g6';
document.querySelector('body').appendChild(el);
it('div content', () => {
expect(document.querySelector('#test-div-id').innerHTML).toBe('hello g6');
});
});