test_filehash.js 396 B

123456789101112
  1. const tap = require('tap')
  2. const fileHash = require('../tools/util/backup_filehash')
  3. tap.test('hashes', function (childTest) {
  4. childTest.equal(fileHash('Library/SMS/sms.db'), '3d0d7e5fb2ce288813306e4d4636395e047a3d28')
  5. childTest.equal(
  6. fileHash('SystemConfiguration/com.apple.wifi.plist', 'SystemPreferencesDomain'), 'ade0340f576ee14793c607073bd7e8e409af07a8'
  7. )
  8. childTest.end()
  9. })