File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/views/jobManager/selfCodes Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { OldSQLJob } from "../../../connection/sqlJob" ;
2
2
import { TestCase } from "../../../testing" ;
3
3
import assert from "assert" ;
4
- import { SelfCodeNode , SelfValue } from "./nodes" ;
5
- import { QueryResult } from "../../../connection/types" ;
4
+ import { SelfValue } from "./nodes" ;
6
5
7
6
export const selfCodeTests = [
8
7
{
@@ -30,9 +29,9 @@ export function testSelfCodes(): TestCase[] {
30
29
await newJob . connect ( ) ;
31
30
await newJob . setSelfState ( test . code as SelfValue ) ;
32
31
try {
33
- await newJob . query ( test . sql ) . run ( ) ;
32
+ await newJob . query ( test . sql ) . execute ( ) ;
34
33
} catch ( e ) { }
35
- let result = await newJob . query ( content , { parameters : [ newJob . id ] } ) . run ( ) ;
34
+ let result = await newJob . query ( content , { parameters : [ newJob . id ] } ) . execute ( ) ;
36
35
assert ( result . data [ 0 ] [ 'MATCHES' ] >= 1 ) ;
37
36
38
37
newJob . close ( ) ;
You can’t perform that action at this time.
0 commit comments