|
|
@@ -61,14 +61,14 @@ describe('parser', () => {
|
|
|
expect(styleAst.plain).toBe(true)
|
|
|
expect(styleAst.forbidden).toBe(true)
|
|
|
expect(styleAst.children[0].text).toBe('error { color: red; }')
|
|
|
- expect('Templates should only be responsbile for mapping the state').toHaveBeenWarned()
|
|
|
+ expect('Templates should only be responsible for mapping the state').toHaveBeenWarned()
|
|
|
// script
|
|
|
const scriptAst = parse('<script type="text/javascript">alert("hello world!")</script>', baseOptions)
|
|
|
expect(scriptAst.tag).toBe('script')
|
|
|
expect(scriptAst.plain).toBe(false)
|
|
|
expect(scriptAst.forbidden).toBe(true)
|
|
|
expect(scriptAst.children[0].text).toBe('alert("hello world!")')
|
|
|
- expect('Templates should only be responsbile for mapping the state').toHaveBeenWarned()
|
|
|
+ expect('Templates should only be responsible for mapping the state').toHaveBeenWarned()
|
|
|
})
|
|
|
|
|
|
it('not contain root element', () => {
|