@@ -101,22 +101,6 @@ describe('babel-plugin-transform-jsx-to-htm', () => {
101101 } ) ;
102102 } ) ;
103103
104- describe ( 'options.html = true' , ( ) => {
105- test ( 'use explicit end tags instead of self-closing' , ( ) => {
106- expect (
107- compile ( '(<div />);' , { html : true } )
108- ) . toBe ( 'html`<div></div>`;' ) ;
109-
110- expect (
111- compile ( '(<div a />);' , { html : true } )
112- ) . toBe ( 'html`<div a></div>`;' ) ;
113-
114- expect (
115- compile ( '(<a>b</a>);' , { html : true } )
116- ) . toBe ( 'html`<a>b</a>`;' ) ;
117- } ) ;
118- } ) ;
119-
120104 describe ( 'props' , ( ) => {
121105 test ( 'static values' , ( ) => {
122106 expect (
@@ -203,24 +187,4 @@ describe('babel-plugin-transform-jsx-to-htm', () => {
203187 ) . toBe ( 'html`<div/>`;' ) ;
204188 } ) ;
205189 } ) ;
206-
207- describe ( 'integration with babel-plugin-jsx-pragmatic' , ( ) => {
208- test ( 'JSX is still identified and import added' , ( ) => {
209- expect (
210- compile ( 'const Foo = props => <div>hello</div>;' , {
211- tag : '$$html' ,
212- plugins : [
213- [ 'babel-plugin-jsx-pragmatic' , {
214- // module to import:
215- module : 'lit-html' ,
216- // the name of the export to use:
217- export : 'html' ,
218- // whatever you specified for the "tag" option:
219- import : '$$html'
220- } ]
221- ]
222- } )
223- ) . toBe ( 'import { html as $$html } from "lit-html";\n\nconst Foo = props => $$html`<div>hello</div>`;' ) ;
224- } ) ;
225- } ) ;
226190} ) ;
0 commit comments