@@ -15,7 +15,6 @@ import {
1515 Join ,
1616 Union ,
1717} from './RelOp' ;
18- import { exprToString } from './util' ;
1918
2019each ( [
2120 [ 'unary operators' , < UnaryRelOp /> ] ,
@@ -88,23 +87,23 @@ it('renders a Product', () => {
8887/** @test {Join} */
8988it ( 'renders an inner Join' , ( ) => {
9089 const { container} = render (
91- < Join type = { 'inner' } condition = { 'foo=3 ∧ bar=2' } />
90+ < Join type = { 'inner' } left = { 'A' } condition = { 'foo=3 ∧ bar=2' } right = { 'B '} />
9291 ) ;
93- expect ( container ) . toContainHTML ( '⋈<sub>foo=3 ∧ bar=2</sub>' ) ;
92+ expect ( container ) . toContainHTML ( 'A ⋈<sub>foo=3 ∧ bar=2</sub> B ' ) ;
9493} ) ;
9594
9695/** @test {Join} */
9796it ( 'renders a left outer Join' , ( ) => {
9897 const { container} = render (
99- < Join type = { 'left' } condition = { 'foo=3 ∧ bar=2' } />
98+ < Join type = { 'left' } left = { 'A' } condition = { 'foo=3 ∧ bar=2' } right = { 'B '} />
10099 ) ;
101- expect ( container ) . toContainHTML ( '⟕<sub>foo=3 ∧ bar=2</sub>' ) ;
100+ expect ( container ) . toContainHTML ( 'A ⟕<sub>foo=3 ∧ bar=2</sub> B ' ) ;
102101} ) ;
103102
104103/** @test {Join} */
105104it ( 'renders a right outer Join' , ( ) => {
106105 const { container} = render (
107- < Join type = { 'right' } condition = { 'foo=3 ∧ bar=2' } />
106+ < Join type = { 'right' } left = { 'A' } condition = { 'foo=3 ∧ bar=2' } right = { 'B '} />
108107 ) ;
109108 expect ( container ) . toContainHTML ( '⟖<sub>foo=3 ∧ bar=2</sub>' ) ;
110109} ) ;
0 commit comments