Skip to content

Commit

Permalink
removed new tests for now
Browse files Browse the repository at this point in the history
  • Loading branch information
c3ho committed Feb 4, 2020
1 parent fb3798f commit 1cb9d5a
Showing 1 changed file with 2 additions and 26 deletions.
28 changes: 2 additions & 26 deletions test/storage.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const {
getPost,
getPosts,
getPostsCount,
setInvalidFeed,
isInvalid,
} = require('../src/backend/utils/storage');

Expand All @@ -27,23 +26,8 @@ describe('Storage tests for feeds', () => {
const feed2 = new Feed('James Smith 2', 'http://seneca.co/jsmith/2');
const feed3 = new Feed('James Smith 2', 'http://seneca.co/jsmith/3', 'etag');
const feed4 = new Feed('James Smith 2', 'http://seneca.co/jsmith/4', 'etag', 'last-modified');
const feed5 = new Feed(
'James Smith Invalid Feed',
'http://seneca.co/jsmith/4',
'etag',
'last-modified'
);

beforeAll(() =>
Promise.all([
addFeed(feed1),
addFeed(feed2),
addFeed(feed3),
addFeed(feed4),
addFeed(feed5),
setInvalidFeed(feed5.id, 'This just fails'),
])
);

beforeAll(() => Promise.all([addFeed(feed1), addFeed(feed2), addFeed(feed3), addFeed(feed4)]));

it('should allow retrieving a feed by id after inserting', async () => {
const feed = await getFeed(feed1.id);
Expand Down Expand Up @@ -77,14 +61,6 @@ describe('Storage tests for feeds', () => {
expect(feeds[2].lastModified).toBe('');
expect(feeds[3].lastModified).toBe('last-modified');
});

it('feed4 should be a valid feed', async () => {
expect(await isInvalid(feed4.id)).toBe(null);
});

it('feed5 should be an invalid feed', async () => {
expect(await redis.get('t:feed:testInvalidFeed:invalid')).toBe('invalid');
});
});

describe('Storage tests for posts', () => {
Expand Down

0 comments on commit 1cb9d5a

Please sign in to comment.