diff --git a/spec/styleguide-spec.js b/spec/styleguide-spec.js index 74f751c..7e7ff0c 100644 --- a/spec/styleguide-spec.js +++ b/spec/styleguide-spec.js @@ -14,5 +14,20 @@ describe('Style Guide', () => { it('opens the style guide', () => { expect(styleGuideView.element.textContent).toContain('Styleguide') }) + + describe('example HTML code blocks', () => { + beforeEach(async () => { + await atom.packages.activatePackage('language-html') + }) + + it('tokenizes HTML code blocks using language-html', () => { + const examples = styleGuideView.element.querySelectorAll('.example-html') + expect(examples.length).toBeGreaterThan(0) + + for (const example of examples) { + expect(example.querySelectorAll('.line .syntax--text.syntax--html.syntax--basic').length).toBeGreaterThan(0) + } + }) + }) }) })