aboutsummaryrefslogtreecommitdiff
path: root/test/java-tests.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/java-tests.ts')
-rw-r--r--test/java-tests.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/java-tests.ts b/test/java-tests.ts
index 1d9f444c2..21d049114 100644
--- a/test/java-tests.ts
+++ b/test/java-tests.ts
@@ -113,7 +113,7 @@ describe('javap parsing', () => {
compiler = new JavaCompiler(info, env);
});
- function testJava(baseFolder: string, ...classNames: string[]) {
+ async function testJava(baseFolder: string, ...classNames: string[]) {
const compiler = new JavaCompiler(info, env);
const asm = classNames.map(className => {
@@ -142,18 +142,18 @@ describe('javap parsing', () => {
asm,
};
- const processed = compiler.processAsm(result);
+ const processed = await compiler.processAsm(result);
processed.should.have.property('asm');
const asmSegments = (processed as {asm: ParsedAsmResultLine[]}).asm;
asmSegments.should.deep.equal(expectedSegments);
}
- it('should handle errors', () => {
+ it('should handle errors', async () => {
const result = {
asm: '<Compilation failed>',
};
- compiler.processAsm(result).should.deep.equal([{text: '<Compilation failed>', source: null}]);
+ (await compiler.processAsm(result)).should.deep.equal([{text: '<Compilation failed>', source: null}]);
});
it('Parses simple class with one method', () => {