Test cleanup and fixes [s-t]
This commit is contained in:
@ -1,11 +1,9 @@
|
||||
const expect = require('expect');
|
||||
const sdbm = require('./sdbm.js');
|
||||
|
||||
|
||||
test('sdbm is a Function', () => {
|
||||
test('sdbm is a Function', () => {
|
||||
expect(sdbm).toBeInstanceOf(Function);
|
||||
});
|
||||
test('Hashes the input string into a whole number.', () => {
|
||||
expect(sdbm('name')).toBe(-3521204949)
|
||||
test('Hashes the input string into a whole number.', () => {
|
||||
expect(sdbm('name')).toBe(-3521204949);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user