[fix] ts tests
This commit is contained in:
		
							parent
							
								
									93e6b0a1d6
								
							
						
					
					
						commit
						11dce43a99
					
				
					 4 changed files with 7 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -295,7 +295,7 @@
 | 
			
		|||
    "watch": "tsc -watch -p ./",
 | 
			
		||||
    "pretest": "npm run compile && npm run lint",
 | 
			
		||||
    "lint": "eslint src --ext ts",
 | 
			
		||||
    "test": "node ./out/test/runTest.js"
 | 
			
		||||
    "test": "npm run compile && mocha './out/test/**/*.js'"
 | 
			
		||||
  },
 | 
			
		||||
  "devDependencies": {
 | 
			
		||||
    "@types/glob": "^7.2.0",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -52,18 +52,19 @@ export class XPathEvaluator {
 | 
			
		|||
                evaluatorResult.result = xPathResult.booleanValue;
 | 
			
		||||
                break;
 | 
			
		||||
            case XPathResultTypes.UNORDERED_NODE_ITERATOR_TYPE:
 | 
			
		||||
            case XPathResultTypes.ORDERED_NODE_ITERATOR_TYPE:
 | 
			
		||||
            case XPathResultTypes.ORDERED_NODE_ITERATOR_TYPE:{
 | 
			
		||||
                evaluatorResult.result = xPathResult.booleanValue;
 | 
			
		||||
 | 
			
		||||
                let node: Node;
 | 
			
		||||
 | 
			
		||||
                while (node = xPathResult.iterateNext()) {
 | 
			
		||||
                while ((node = xPathResult.iterateNext())) {
 | 
			
		||||
                    nodes.push(node);
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                evaluatorResult.result = nodes;
 | 
			
		||||
                evaluatorResult.type = EvaluatorResultType.NODE_COLLECTION;
 | 
			
		||||
                break;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -87,7 +87,7 @@ export async function executeXQuery(editor: TextEditor, edit: TextEditorEdit): P
 | 
			
		|||
 | 
			
		||||
    if (outputPath) {
 | 
			
		||||
        outputPath = await window.showInputBox({
 | 
			
		||||
            placeHolder: "ex. C:\\TEMP\XQueryOutput\\MyOutputFile.xml",
 | 
			
		||||
            placeHolder: "ex. C:/TEMP/XQueryOutput/MyOutputFile.xml",
 | 
			
		||||
            prompt: "Please specify the output file path. Existing file behavior is determined by the execution engine you have specified.",
 | 
			
		||||
            value: outputPath
 | 
			
		||||
        });
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -14,6 +14,7 @@
 | 
			
		|||
    },
 | 
			
		||||
    "exclude": [
 | 
			
		||||
        "node_modules",
 | 
			
		||||
        ".vscode-test"
 | 
			
		||||
        ".vscode-test",
 | 
			
		||||
        "out/**/*"
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		
		Reference in a new issue