@@ -22,13 +22,7 @@ import {
2222} from '../testUtils' ;
2323import { ResultTable } from './resultTable' ;
2424import { getDisplayValue } from './resultUtils' ;
25- import {
26- miscValueTypeTests ,
27- specializationTests ,
28- standardTypeTests ,
29- valueTypeSpecializationTests ,
30- valueTypeTests ,
31- } from './tests' ;
25+ import { specializationTests , standardTypeTests } from './tests' ;
3226
3327describe ( 'Integration' , ( ) => {
3428 const engineName = getEngineName ( ) ;
@@ -92,70 +86,4 @@ describe('Integration', () => {
9286 } ) ;
9387 } ) ;
9488 } ) ;
95-
96- describe ( 'Rel to JS value types' , ( ) => {
97- setup ( ) ;
98-
99- valueTypeTests . forEach ( test => {
100- const testFn = test . skip ? it . skip : test . only ? it . only : it ;
101-
102- testFn ( `should handle ${ test . name } in value type` , async ( ) => {
103- const result = await client . exec ( databaseName , engineName , test . query ) ;
104- const table = new ResultTable ( result . results [ 0 ] ) . sliceColumns ( 1 ) ;
105- const typeDefs = table . typeDefs ( ) ;
106- const values = table . get ( 0 ) ;
107- const displayValues = values ?. map ( ( v , i ) =>
108- getDisplayValue ( typeDefs [ i ] , v ) ,
109- ) ;
110-
111- expect ( typeDefs ) . toEqual ( test . typeDefs ) ;
112- expect ( values ) . toEqual ( test . values ) ;
113- expect ( displayValues ) . toEqual ( test . displayValues ) ;
114- } ) ;
115- } ) ;
116- } ) ;
117-
118- describe ( 'Rel to JS value types misc' , ( ) => {
119- setup ( ) ;
120-
121- miscValueTypeTests . forEach ( test => {
122- const testFn = test . skip ? it . skip : test . only ? it . only : it ;
123-
124- testFn ( `should handle ${ test . name } value type` , async ( ) => {
125- const result = await client . exec ( databaseName , engineName , test . query ) ;
126- const table = new ResultTable ( result . results [ 0 ] ) . sliceColumns ( 1 ) ;
127- const typeDefs = table . typeDefs ( ) ;
128- const values = table . get ( 0 ) ;
129- const displayValues = values ?. map ( ( v , i ) =>
130- getDisplayValue ( typeDefs [ i ] , v ) ,
131- ) ;
132-
133- expect ( typeDefs ) . toEqual ( test . typeDefs ) ;
134- expect ( values ) . toEqual ( test . values ) ;
135- expect ( displayValues ) . toEqual ( test . displayValues ) ;
136- } ) ;
137- } ) ;
138- } ) ;
139-
140- describe ( 'Rel to JS value types specialization' , ( ) => {
141- setup ( ) ;
142-
143- valueTypeSpecializationTests . forEach ( test => {
144- const testFn = test . skip ? it . skip : test . only ? it . only : it ;
145-
146- testFn ( `should handle ${ test . name } value type` , async ( ) => {
147- const result = await client . exec ( databaseName , engineName , test . query ) ;
148- const table = new ResultTable ( result . results [ 0 ] ) . sliceColumns ( 1 ) ;
149- const typeDefs = table . typeDefs ( ) ;
150- const values = table . get ( 0 ) ;
151- const displayValues = values ?. map ( ( v , i ) =>
152- getDisplayValue ( typeDefs [ i ] , v ) ,
153- ) ;
154-
155- expect ( typeDefs ) . toEqual ( test . typeDefs ) ;
156- expect ( values ) . toEqual ( test . values ) ;
157- expect ( displayValues ) . toEqual ( test . displayValues ) ;
158- } ) ;
159- } ) ;
160- } ) ;
16189} ) ;
0 commit comments