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

Commit

Permalink
fix(isseu): iterative
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Garant committed Sep 14, 2019
1 parent d0d5faa commit b949f9f
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 63 deletions.
16 changes: 10 additions & 6 deletions __tests__/__snapshots__/issue.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ https://github.com/protoEvangelion/gh/issues/1
"
`;

exports[`E2E: Issues Module Test Close Issue \`gh is 1 -C\` 1`] = `
"Closing issue #1 on protoEvangelion/gh
https://github.com/protoEvangelion/gh/issues/1
exports[`E2E: Issues Module Test Close Issue \`gh is --close --number 7 --number 10\` 1`] = `
"Closing issue 7 on protoEvangelion/gh
https://github.com/protoEvangelion/gh/issues/7
Closing issue 10 on protoEvangelion/gh
https://github.com/protoEvangelion/gh/issues/10
"
`;

Expand Down Expand Up @@ -41,9 +43,11 @@ exports[`E2E: Issues Module Test List Issues \`gh is\` 1`] = `
"
`;

exports[`E2E: Issues Module Test Open Issue \`gh is 1 -o\` 1`] = `
"Opening issue #1 on protoEvangelion/gh
https://github.com/protoEvangelion/gh/issues/1
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
Opening issue 10 on protoEvangelion/gh
https://github.com/protoEvangelion/gh/issues/10
"
`;

Expand Down
8 changes: 4 additions & 4 deletions __tests__/issue.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ describe('E2E: Issues Module Test', () => {
done()
})

it('Open Issue `gh is 1 -o`', done => {
expect(runCmd(`gh is 1 -o`)).toMatchSnapshot()
it('Close Issue `gh is --close --number 7 --number 10`', done => {
expect(runCmd(`gh is --close --number 7 --number 10`)).toMatchSnapshot()
done()
})

it('Close Issue `gh is 1 -C`', done => {
expect(runCmd(`gh is 1 -C`)).toMatchSnapshot()
it('Open Issue `gh is --open --number 7 --number 10`', done => {
expect(runCmd(`gh is --open --number 7 --number 10`)).toMatchSnapshot()
done()
})

Expand Down
Loading

0 comments on commit b949f9f

Please sign in to comment.