{"size": 453, "ext": "js", "max_stars_repo_path": "test/util/compareFiles.js", "max_stars_repo_name": "Edythator/asar", "max_stars_repo_stars_event_min_datetime": "2016-04-05T03:20:46.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T04:31:04.000Z", "max_issues_repo_path": "test/util/compareFiles.js", "max_issues_repo_name": "Edythator/asar", "max_issues_repo_issues_event_min_datetime": "2016-04-08T08:44:32.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-04T02:30:42.000Z", "max_forks_repo_path": "test/util/compareFiles.js", "max_forks_repo_name": "Edythator/asar", "max_forks_repo_forks_event_min_datetime": "2016-04-06T18:13:38.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-25T03:10:58.000Z"}
{"max_stars_count": 1719, "max_issues_count": 165, "max_forks_count": 249, "avg_line_length": 34.8461538462, "max_line_length": 124, "alphanum_fraction": 0.7417218543}
'use strict'

const assert = require('assert')
const fs = require('../../lib/wrapped-fs')

module.exports = async function (actualFilePath, expectedFilePath) {
  if (process.env.ELECTRON_ASAR_SPEC_UPDATE) {
    await fs.writeFile(expectedFilePath, await fs.readFile(actualFilePath))
  }
  const [actual, expected] = await Promise.all([fs.readFile(actualFilePath, 'utf8'), fs.readFile(expectedFilePath, 'utf8')])
  assert.strictEqual(actual, expected)
}
