Skip to content

Commit

Permalink
return promise
Browse files Browse the repository at this point in the history
  • Loading branch information
TMisiukiewicz committed Mar 6, 2023
1 parent f95292a commit 7e6c964
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/unit/nativeVersionUpdaterTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,8 @@ describe('updateAndroidVersion', () => {
}
}
`],
])('updateAndroidVersion("%s", "%s")', (versionName, versionCode, expected) => {
updateAndroidVersion(versionName, versionCode).then(() => {
const result = fs.readFileSync(BUILD_GRADLE_PATH, {encoding: 'utf8'}).toString();
expect(result).toBe(expected);
});
});
])('updateAndroidVersion("%s", "%s")', (versionName, versionCode, expected) => updateAndroidVersion(versionName, versionCode).then(() => {
const result = fs.readFileSync(BUILD_GRADLE_PATH, {encoding: 'utf8'}).toString();
expect(result).toBe(expected);
}));
});

0 comments on commit 7e6c964

Please sign in to comment.