| 144 | |
| 145 | test('parseRefs', () => { |
| 146 | const parse = refs => { |
| 147 | const refsAsObject = {}; |
| 148 | for (const [key, value] of parseRefs(refs).entries()) { |
| 149 | refsAsObject[key] = value; |
| 150 | } |
| 151 | return refsAsObject; |
| 152 | }; |
| 153 | |
| 154 | expect(parse(`64b2c0cee9e829f73c5ad32b8cc8cb6f3bec65bb refs/tags/v4.2.2`)).toMatchObject({ |
| 155 | 'refs/tags/v4.2.2': '64b2c0cee9e829f73c5ad32b8cc8cb6f3bec65bb', |
no test coverage detected
searching dependent graphs…