Skip to content

Commit

Permalink
Refactor action (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
micnncim authored Jun 4, 2020
1 parent c7b9d03 commit d03fee8
Show file tree
Hide file tree
Showing 6 changed files with 8,252 additions and 23,684 deletions.
20 changes: 2 additions & 18 deletions __tests__/main.test.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
import * as Processor from '../src/Processor';

test('issues payload is assumed to be issues payload', async () => {
const payload: any = {
pull_request: {
number: 1
}
};
expect(Processor.isWebhookPayloadPullRequest(payload)).toEqual(true);
});

test('pull request payload is assumed to be pull request payload', async () => {
const payload: any = {
issue: {
number: 1
}
};
expect(Processor.isWebhookPayloadIssues(payload)).toEqual(true);
describe('TODO - Add a test suite', () => {
it('TODO - Add a test', async () => {});
});
Loading

0 comments on commit d03fee8

Please sign in to comment.