Skip to content

Commit

Permalink
fix(formatPkg): correct name
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv committed May 4, 2018
1 parent 9a24fcc commit b8175f3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
@@ -1,5 +1,5 @@
module.exports = {
extends: ['algolia/jest'],
extends: ['algolia', 'algolia/jest'],
rules: {
'valid-jsdoc': 'off',
},
Expand Down
8 changes: 4 additions & 4 deletions src/__tests__/__snapshots__/formatPkg.test.js.snap

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/__tests__/formatPkg.test.js
Expand Up @@ -24,7 +24,7 @@ it('truncates long readmes', () => {
formatted.readme.length - truncatedEnding.length
);

expect(formatted.readme).toHaveLength(451220);
expect(formatted.readme).toHaveLength(451224);
expect(ending).toBe(truncatedEnding);

formatted.lastCrawl = '<!-- date replaced -->';
Expand Down
2 changes: 1 addition & 1 deletion src/formatPkg.js
Expand Up @@ -94,7 +94,7 @@ export default function formatPkg(pkg) {
lastCrawl: new Date().toISOString(),
_searchInternal: {
concatenatedName,
alternativeNames: [concatenatedName, splitName, name],
alternativeNames: [concatenatedName, splitName, cleaned.name],
},
};

Expand Down

0 comments on commit b8175f3

Please sign in to comment.