@@ -16,7 +16,7 @@ describe("HyperboardsQueryStrategy", () => {
1616 it ( "should build a basic query without args" , ( ) => {
1717 const query = strategy . buildDataQuery ( db ) ;
1818 const { sql } = query . compile ( ) ;
19- expect ( sql ) . toMatch ( / s e l e c t \* f r o m " h y p e r b o a r d s " / i) ;
19+ expect ( sql ) . toMatch ( / s e l e c t \* f r o m " h y p e r b o a r d s _ w i t h _ a d m i n s " / i) ;
2020 } ) ;
2121
2222 it ( "should build a query with collection filter" , ( ) => {
@@ -26,7 +26,9 @@ describe("HyperboardsQueryStrategy", () => {
2626 } ,
2727 } ) ;
2828 const { sql } = query . compile ( ) ;
29- expect ( sql ) . toContain ( 'select "hyperboards".* from "hyperboards"' ) ;
29+ expect ( sql ) . toContain (
30+ 'select "hyperboards_with_admins".* from "hyperboards_with_admins"' ,
31+ ) ;
3032 } ) ;
3133
3234 it ( "should build a query with admin filter" , ( ) => {
@@ -36,15 +38,19 @@ describe("HyperboardsQueryStrategy", () => {
3638 } ,
3739 } ) ;
3840 const { sql } = query . compile ( ) ;
39- expect ( sql ) . toContain ( 'select "hyperboards".* from "hyperboards"' ) ;
41+ expect ( sql ) . toContain (
42+ 'select "hyperboards_with_admins".* from "hyperboards_with_admins"' ,
43+ ) ;
4044 } ) ;
4145 } ) ;
4246
4347 describe ( "buildCountQuery" , ( ) => {
4448 it ( "should build a basic count query without args" , ( ) => {
4549 const query = strategy . buildCountQuery ( db ) ;
4650 const { sql } = query . compile ( ) ;
47- expect ( sql ) . toMatch ( / s e l e c t c o u n t \( \* \) a s " c o u n t " f r o m " h y p e r b o a r d s " / i) ;
51+ expect ( sql ) . toMatch (
52+ / s e l e c t c o u n t \( \* \) a s " c o u n t " f r o m " h y p e r b o a r d s _ w i t h _ a d m i n s " / i,
53+ ) ;
4854 } ) ;
4955
5056 it ( "should build a count query with collection filter" , ( ) => {
0 commit comments