Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jagoda11 committed May 30, 2024
1 parent 8a7358a commit 0407b28
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('index.js', () => {
nock.enableNetConnect();
});

test('creates a comment when an issue is opened', async () => {
test('📝creates a comment when an issue is opened', async () => {
// Mock GitHub API
nock('https://api.github.com')
.post('/repos/test/test/issues/1/comments')
Expand Down Expand Up @@ -53,7 +53,7 @@ describe('index.js', () => {
expect(nock.isDone()).toBe(true);
});

test('creates a comment when an issue is closed', async () => {
test('🚪 creates a comment when an issue is closed', async () => {
// Mock GitHub API
nock('https://api.github.com')
.post('/repos/test/test/issues/1/comments')
Expand Down Expand Up @@ -84,7 +84,7 @@ describe('index.js', () => {
expect(nock.isDone()).toBe(true);
});

test('creates a comment when a pull request is opened', async () => {
test('📝 creates a comment when a pull request is opened', async () => {
// Mock GitHub API
nock('https://api.github.com')
.post('/repos/test/test/issues/1/comments')
Expand Down Expand Up @@ -115,7 +115,7 @@ describe('index.js', () => {
expect(nock.isDone()).toBe(true);
});

test('responds to pull request closed', async () => {
test('🚪 responds to pull request closed', async () => {

Check warning on line 118 in test/index.test.js

View workflow job for this annotation

GitHub Actions / build (21.x)

Test has no assertions

Check warning on line 118 in test/index.test.js

View workflow job for this annotation

GitHub Actions / build (21.x)

Test has no assertions
// Mock GitHub API
nock('https://api.github.com')
.post('/repos/test/test/issues/1/comments')
Expand Down

0 comments on commit 0407b28

Please sign in to comment.