Skip to content

Commit

Permalink
chore: lint fix (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley authored Nov 12, 2021
1 parent ea19885 commit cae1a5c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions src/core/util/hash_code.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@

export function hashCode(text: string, hash: number = 0) {
if (text.length === 0) return hash;
for (let i = 0; i < text.length; i++) {
const chr = text.charCodeAt(i);
hash = ((hash << 5) - hash) + chr;
hash = (hash << 5) - hash + chr;
hash |= 0; // Convert to 32bit integer
}
return Number(Math.abs(hash)).toString(36);
Expand Down
3 changes: 0 additions & 3 deletions src/testing/expect-dom.unit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@ function toHTML(node: any) {
}
}




describe('expect-dom', () => {
it('should match element', () => {
expectDOM(toDOM('<span></span>'), <span></span>);
Expand Down

0 comments on commit cae1a5c

Please sign in to comment.