diff --git a/lib/__tests__/account.jest.js b/lib/__tests__/account.jest.js index c33a4c8..e4fb746 100644 --- a/lib/__tests__/account.jest.js +++ b/lib/__tests__/account.jest.js @@ -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); +});