Skip to content

Commit

Permalink
Merge pull request #3 from CSE-210-Team-6/justin-tests
Browse files Browse the repository at this point in the history
add first test
  • Loading branch information
justinnguyen0 authored Nov 11, 2023
2 parents c6b3b9f + 5c46a91 commit 3ad97dc
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/__tests__/account.jest.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
const account = require('../account');
const { isMyPost } = require('../account');

import 'node-fetch';

jest.mock('node-fetch', () => jest.fn());

test('Check if a post is my post', () => {});
test('Check if a post is my post', () => {
const { DOMAIN } = process.env;
const activity = {
id: `https://${DOMAIN}/m/`
};

expect(isMyPost(activity)).toBe(true);
});

0 comments on commit 3ad97dc

Please sign in to comment.