All files / test/analytics AnalyticsHelperTest.ts

63.64% Statements 7/11
100% Branches 0/0
33.33% Functions 1/3
55.56% Lines 5/9

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 171x 1x   1x   1x                   1x  
import { TestClass } from '../TestClass';
import { _hashCode } from '../../src/analytics/AnalyticsHelper';
 
export class AnalyticsHelperTest extends TestClass {
 
    public registerTests() {
        this.testCase({
            name: 'Verify hashCode returns same hash for same value',
            test: () => {
                const result1 = _hashCode('foobar');
                const result2 = _hashCode('foobar');
                QUnit.assert.equal(result1, result2);
            }
        });
    }
}