Skip to content

Commit f10c6cc

Browse files
committed
Add lab 4 configuration
1 parent 2f89967 commit f10c6cc

File tree

9 files changed

+294
-50
lines changed

9 files changed

+294
-50
lines changed

__fixtures__/exec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
import { jest } from '@jest/globals'
22

33
export const exec = jest.fn()
4+
export const getExecOutput = jest.fn()

__tests__/github/repos.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,12 @@ describe('repos', () => {
204204
})
205205

206206
it('Configures a Repo', async () => {
207+
exec.getExecOutput.mockResolvedValue({
208+
stdout: 'stdout',
209+
stderr: 'stderr',
210+
exitCode: 0
211+
} as never)
212+
207213
await repos.configure(
208214
{
209215
action: AllowedIssueAction.CREATE,

badges/coverage.svg

Lines changed: 1 addition & 1 deletion
Loading

dist/github/repos.d.ts

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js

Lines changed: 50 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lab-files/4-interactive-rebase/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)