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

Commit

Permalink
test(pull-request): update nock because to handle not sending body wh…
Browse files Browse the repository at this point in the history
…en closing PR
  • Loading branch information
Ryan Garant committed Oct 2, 2019
1 parent da8cdbf commit 5a57b59
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 14 deletions.
30 changes: 19 additions & 11 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,33 @@
"type": "node",
"request": "launch",
"runtimeArgs": ["-r", "ts-node/register"],
"args": ["${workspaceFolder}/src/debug.ts", "pr", "109", "-C"],
"args": [
"${workspaceFolder}/src/debug.ts",
"re",
"-c",
"-u",
"Product",
"--repo",
"service-lumin"
],
// "args": ["${workspaceFolder}/src/debug.ts", "ji", "LWM-117", "--status"],
"console": "integratedTerminal"
},
{
"name": "Testing Mode",
"type": "node",
"request": "launch",
"env": { "NODE_ENV": "testing", "GH_USER": "protoEvangelion", "GH_TOKEN": "0001" },
"env": {
"NODE_ENV": "testing",
"GH_USER": "protoEvangelion",
"GH_TOKEN": "0001",
"GENERATE_NEW_TOKEN": "true"
},
"osx": {
"DEBUG": "nock.*"
},
"runtimeArgs": ["-r", "ts-node/register"],
"args": [
"${workspaceFolder}/src/debug.ts",
"is",
"-N",
"-t",
"'Node GH rocks!'",
"-L",
"bug,question,test"
],
"args": ["${workspaceFolder}/src/debug.ts", "user", "--login"],
"console": "integratedTerminal"
}
]
Expand Down
2 changes: 1 addition & 1 deletion __tests__/nockFixtures/PullRequestClose.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion __tests__/nockFixtures/PullRequestOpen.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion __tests__/pull-request.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ describe('E2E: Pull Request Module Test', () => {
done()
})

it('Open PR `gh pr --open --number 50 --number 40`', done => {
it.only('Open PR `gh pr --open --number 50 --number 40`', done => {
expect(runCmd('gh pr --open --number 50 --number 40')).toMatchSnapshot()
done()
})
Expand Down

0 comments on commit 5a57b59

Please sign in to comment.