We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea19885 commit cae1a5cCopy full SHA for cae1a5c
src/core/util/hash_code.ts
@@ -1,9 +1,8 @@
1
-
2
export function hashCode(text: string, hash: number = 0) {
3
if (text.length === 0) return hash;
4
for (let i = 0; i < text.length; i++) {
5
const chr = text.charCodeAt(i);
6
- hash = ((hash << 5) - hash) + chr;
+ hash = (hash << 5) - hash + chr;
7
hash |= 0; // Convert to 32bit integer
8
}
9
return Number(Math.abs(hash)).toString(36);
src/testing/expect-dom.unit.tsx
@@ -95,9 +95,6 @@ function toHTML(node: any) {
95
96
97
98
99
100
101
describe('expect-dom', () => {
102
it('should match element', () => {
103
expectDOM(toDOM('<span></span>'), <span></span>);
0 commit comments