Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Commit

Permalink
test(issue): add issue lock e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Garant committed Nov 13, 2019
1 parent b9b8994 commit 2f44a4c
Show file tree
Hide file tree
Showing 4 changed files with 641 additions and 1 deletion.
6 changes: 6 additions & 0 deletions __tests__/__snapshots__/issue.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ exports[`E2E: Issues Module Test List Issues \`gh is\` 1`] = `
"
`;

exports[`E2E: Issues Module Test Lock issue in browser \`gh is 138 --lock --lock-reason off-topic\` 1`] = `
"Locking issue 138 on protoEvangelion/gh
Success locking issue.
"
`;

exports[`E2E: Issues Module Test Open Issue \`gh is --open --number 7 --number 10\` 1`] = `
"Opening issue 7 on protoEvangelion/gh
https://github.com/protoEvangelion/gh/issues/7
Expand Down
5 changes: 5 additions & 0 deletions __tests__/issue.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,9 @@ describe('E2E: Issues Module Test', () => {
expect(runCmd(`gh is -s 'hi'`)).toMatchSnapshot()
done()
})

it('Lock issue in browser `gh is 138 --lock --lock-reason off-topic`', done => {
expect(runCmd('gh is 138 --lock --lock-reason off-topic')).toMatchSnapshot()
done()
})
})
Loading

0 comments on commit 2f44a4c

Please sign in to comment.