Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
keeramis committed May 24, 2023
1 parent c91bae9 commit cbceafa
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/cmd/binary.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ describe('Binary Inspect', () => {
describe('_extractFiles', () => {
afterEach(async () => {
await fs.readdir('.', (err, files) => {
if (err) {
// ignore error
}
files.forEach(async (file) => {
if (file.startsWith('temp-dir-for-assets')) {
await fs.remove(file);
Expand Down Expand Up @@ -108,6 +111,9 @@ describe('Binary Inspect', () => {
describe('__extractZip', () => {
afterEach(async () => {
await fs.readdir('.', (err, files) => {
if (err) {
// ignore error
}
files.forEach(async (file) => {
if (file.startsWith('temp-dir-for-assets')) {
await fs.remove(file);
Expand Down Expand Up @@ -145,11 +151,9 @@ describe('Binary Inspect', () => {
it('returns error if fails to unzip', async () => {
const zipPath = path.join(PATH_FIXTURES_THIRDPARTY_OTA_DIR, 'random-bad-bundle.zip');
let error;
let resDir;


try {
resDir = await binaryCommand._extractZip(zipPath);
await binaryCommand._extractZip(zipPath);
} catch (_error) {
error = _error;
}
Expand Down

0 comments on commit cbceafa

Please sign in to comment.