0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-04-01 02:42:23 -05:00

chore: update unit test sidebar

This commit is contained in:
Juan Picado @jotadeveloper 2018-06-12 08:22:23 +02:00
parent 82e457b7ed
commit 92e1eb00ca
No known key found for this signature in database
GPG key ID: 18AC54485952D158

View file

@ -609,7 +609,6 @@ describe('endpoint unit test', () => {
const sideBarInfo = res.body;
const latestVersion = publishMetadata.versions[publishMetadata['dist-tags'].latest];
expect(sideBarInfo.name).toBe(latestVersion.name);
expect(sideBarInfo.latest.author).toBeDefined();
expect(sideBarInfo.latest.author.avatar).toMatch(/www.gravatar.com/);
expect(sideBarInfo.latest.author.name).toBe(latestVersion.author.name);