[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 ./",
 | 
					    "watch": "tsc -watch -p ./",
 | 
				
			||||||
    "pretest": "npm run compile && npm run lint",
 | 
					    "pretest": "npm run compile && npm run lint",
 | 
				
			||||||
    "lint": "eslint src --ext ts",
 | 
					    "lint": "eslint src --ext ts",
 | 
				
			||||||
    "test": "node ./out/test/runTest.js"
 | 
					    "test": "npm run compile && mocha './out/test/**/*.js'"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "devDependencies": {
 | 
					  "devDependencies": {
 | 
				
			||||||
    "@types/glob": "^7.2.0",
 | 
					    "@types/glob": "^7.2.0",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -52,12 +52,12 @@ export class XPathEvaluator {
 | 
				
			||||||
                evaluatorResult.result = xPathResult.booleanValue;
 | 
					                evaluatorResult.result = xPathResult.booleanValue;
 | 
				
			||||||
                break;
 | 
					                break;
 | 
				
			||||||
            case XPathResultTypes.UNORDERED_NODE_ITERATOR_TYPE:
 | 
					            case XPathResultTypes.UNORDERED_NODE_ITERATOR_TYPE:
 | 
				
			||||||
            case XPathResultTypes.ORDERED_NODE_ITERATOR_TYPE:
 | 
					            case XPathResultTypes.ORDERED_NODE_ITERATOR_TYPE:{
 | 
				
			||||||
                evaluatorResult.result = xPathResult.booleanValue;
 | 
					                evaluatorResult.result = xPathResult.booleanValue;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                let node: Node;
 | 
					                let node: Node;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                while (node = xPathResult.iterateNext()) {
 | 
					                while ((node = xPathResult.iterateNext())) {
 | 
				
			||||||
                    nodes.push(node);
 | 
					                    nodes.push(node);
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -65,6 +65,7 @@ export class XPathEvaluator {
 | 
				
			||||||
                evaluatorResult.type = EvaluatorResultType.NODE_COLLECTION;
 | 
					                evaluatorResult.type = EvaluatorResultType.NODE_COLLECTION;
 | 
				
			||||||
                break;
 | 
					                break;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return evaluatorResult;
 | 
					        return evaluatorResult;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -87,7 +87,7 @@ export async function executeXQuery(editor: TextEditor, edit: TextEditorEdit): P
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (outputPath) {
 | 
					    if (outputPath) {
 | 
				
			||||||
        outputPath = await window.showInputBox({
 | 
					        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.",
 | 
					            prompt: "Please specify the output file path. Existing file behavior is determined by the execution engine you have specified.",
 | 
				
			||||||
            value: outputPath
 | 
					            value: outputPath
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -14,6 +14,7 @@
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "exclude": [
 | 
					    "exclude": [
 | 
				
			||||||
        "node_modules",
 | 
					        "node_modules",
 | 
				
			||||||
        ".vscode-test"
 | 
					        ".vscode-test",
 | 
				
			||||||
 | 
					        "out/**/*"
 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue