Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Add a second spec!
Browse files Browse the repository at this point in the history
  • Loading branch information
Wliu authored and Wliu committed Nov 5, 2017
1 parent f3f7ffc commit 8012484
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions spec/styleguide-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
})
})
})
})

0 comments on commit 8012484

Please sign in to comment.