@@ -15,7 +15,6 @@ import {
15
15
Join ,
16
16
Union ,
17
17
} from './RelOp' ;
18
- import { exprToString } from './util' ;
19
18
20
19
each ( [
21
20
[ 'unary operators' , < UnaryRelOp /> ] ,
@@ -88,23 +87,23 @@ it('renders a Product', () => {
88
87
/** @test {Join} */
89
88
it ( 'renders an inner Join' , ( ) => {
90
89
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 '} />
92
91
) ;
93
- expect ( container ) . toContainHTML ( '⋈<sub>foo=3 ∧ bar=2</sub>' ) ;
92
+ expect ( container ) . toContainHTML ( 'A ⋈<sub>foo=3 ∧ bar=2</sub> B ' ) ;
94
93
} ) ;
95
94
96
95
/** @test {Join} */
97
96
it ( 'renders a left outer Join' , ( ) => {
98
97
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 '} />
100
99
) ;
101
- expect ( container ) . toContainHTML ( '⟕<sub>foo=3 ∧ bar=2</sub>' ) ;
100
+ expect ( container ) . toContainHTML ( 'A ⟕<sub>foo=3 ∧ bar=2</sub> B ' ) ;
102
101
} ) ;
103
102
104
103
/** @test {Join} */
105
104
it ( 'renders a right outer Join' , ( ) => {
106
105
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 '} />
108
107
) ;
109
108
expect ( container ) . toContainHTML ( '⟖<sub>foo=3 ∧ bar=2</sub>' ) ;
110
109
} ) ;
0 commit comments