(repository: Repository)
| 510 | } |
| 511 | |
| 512 | const getSubmoduleDiff = async (repository: Repository) => { |
| 513 | const status = await getStatusOrThrow(repository) |
| 514 | const file = status.workingDirectory.files[0] |
| 515 | const diff = await getWorkingDirectoryDiff(repository, file) |
| 516 | assert.equal(diff.kind, DiffType.Submodule) |
| 517 | |
| 518 | return diff as ISubmoduleDiff |
| 519 | } |
| 520 | |
| 521 | it('can get the diff for a submodule with the right paths', async t => { |
| 522 | const repoPath = await setupFixtureRepository(t, 'submodule-basic-setup') |
no test coverage detected