@@ -11,18 +11,18 @@ import { renderToString } from 'element';
1111/**
1212 * Internal dependencies
1313 */
14- import * as query from '../query ' ;
14+ import * as matchers from '../matchers ' ;
1515
16- describe ( 'query ' , ( ) => {
16+ describe ( 'matchers ' , ( ) => {
1717 it ( 'should generate matchers which apply internal flag' , ( ) => {
18- for ( const matcherFn in query ) {
19- expect ( query [ matcherFn ] ( ) . _wpBlocksKnownMatcher ) . toBe ( true ) ;
18+ for ( const matcherFn in matchers ) {
19+ expect ( matchers [ matcherFn ] ( ) . _wpBlocksKnownMatcher ) . toBe ( true ) ;
2020 }
2121 } ) ;
2222
2323 describe ( 'children()' , ( ) => {
2424 it ( 'should return a matcher function' , ( ) => {
25- const matcher = query . children ( ) ;
25+ const matcher = matchers . children ( ) ;
2626
2727 expect ( typeof matcher ) . toBe ( 'function' ) ;
2828 } ) ;
@@ -31,15 +31,15 @@ describe( 'query', () => {
3131 // Assumption here is that we can cleanly convert back and forth
3232 // between a string and WPElement representation
3333 const html = '<blockquote><p>A delicious sundae dessert</p></blockquote>' ;
34- const match = parse ( html , query . children ( ) ) ;
34+ const match = parse ( html , matchers . children ( ) ) ;
3535
3636 expect ( renderToString ( match ) ) . toBe ( html ) ;
3737 } ) ;
3838 } ) ;
3939
4040 describe ( 'node()' , ( ) => {
4141 it ( 'should return a matcher function' , ( ) => {
42- const matcher = query . node ( ) ;
42+ const matcher = matchers . node ( ) ;
4343
4444 expect ( typeof matcher ) . toBe ( 'function' ) ;
4545 } ) ;
@@ -48,7 +48,7 @@ describe( 'query', () => {
4848 // Assumption here is that we can cleanly convert back and forth
4949 // between a string and WPElement representation
5050 const html = '<blockquote><p>A delicious sundae dessert</p></blockquote>' ;
51- const match = parse ( html , query . node ( ) ) ;
51+ const match = parse ( html , matchers . node ( ) ) ;
5252
5353 expect ( wp . element . renderToString ( match ) ) . toBe ( `<body>${ html } </body>` ) ;
5454 } ) ;
0 commit comments