fix: unit-test failure (#1184)

This commit is contained in:
エリス
2021-03-30 18:46:43 +09:00
committed by GitHub
parent cb1cf4dc8e
commit 6dcd67a902
2 changed files with 10 additions and 10 deletions
+4 -4
View File
@@ -826,17 +826,17 @@ describe('prepare', () => {
api = new Api();
});
it('runs without arguments', () => {
expectAsync(
it('runs without arguments', async () => {
await expectAsync(
api.prepare(cordovaProject, options).then(() => {
expect(gradlePropertiesParserSpy).toHaveBeenCalledWith({});
})
).toBeResolved();
});
it('runs with jvmargs', () => {
it('runs with jvmargs', async () => {
options.options.argv = ['--jvmargs=-Xmx=4096m'];
expectAsync(
await expectAsync(
api.prepare(cordovaProject, options).then(() => {
expect(gradlePropertiesParserSpy).toHaveBeenCalledWith({
'org.gradle.jvmargs': '-Xmx=4096m'