Add missing awaits in Rust argument parser tests (#7862)

Resolves #7826.
This commit is contained in:
narpfel
2025-06-29 14:47:52 +02:00
committed by GitHub
parent 9fb8d192ed
commit 6f128e4b97

View File

@@ -314,7 +314,7 @@ describe('Rust help message parser', () => {
const compiler = makeCompiler(lines.join('\n'));
await RustParser.parse(compiler);
expect(compiler.compiler.supportsTarget).toBe(true);
expect(RustParser.getOptions(compiler, '--help')).resolves.toEqual({
await expect(RustParser.getOptions(compiler, '--help')).resolves.toEqual({
'-l [KIND[:MODIFIERS]=]NAME[:RENAME]': {
description:
'Link the generated crate(s) to the specified native library NAME. The optional KIND can be one of',
@@ -346,7 +346,7 @@ describe('Rust help message parser', () => {
const compiler = makeCompiler(lines.join('\n'));
await RustParser.parse(compiler);
expect(compiler.compiler.supportsTarget).toBe(true);
expect(RustParser.getOptions(compiler, '--help')).resolves.toEqual({
await expect(RustParser.getOptions(compiler, '--help')).resolves.toEqual({
'-l [<KIND>[:<MODIFIERS>]=]<NAME>[:<RENAME>]': {
description:
'Link the generated crate(s) to the specified native library NAME. The optional KIND can be one of',