const {test} = require('tap')

const fixturizeCommitSha = require('../../lib/fixturize-commit-sha')

test('fixturizeCommitSha for existing sha', (t) => {
  const map = {
    'existing': '0000000000000000000000000000000000000001'
  }
  const sha = fixturizeCommitSha(map, 'existing')
  t.is(sha, '0000000000000000000000000000000000000001')
  t.end()
})

test('fixturizeCommitSha for fixturized sha sha', (t) => {
  const map = {
    'existing': '0000000000000000000000000000000000000001'
  }
  const sha = fixturizeCommitSha(map, '0000000000000000000000000000000000000001')
  t.is(sha, '0000000000000000000000000000000000000001')
  t.end()
})

@@ -98,260 +98,8 @@
 ')%0A%0A
-test('fixturizeCommitSha for existing sha', (t) =%3E %7B%0A  const map = %7B%0A    'existing': '0000000000000000000000000000000000000001'%0A  %7D%0A  const sha = fixturizeCommitSha(map, 'existing')%0A  t.is(sha, '0000000000000000000000000000000000000001')%0A  t.end()%0A%7D)%0A%0A
 test
@@ -134,20 +134,16 @@
 turized 
-sha 
 sha', (t

remove unneeded unit test