Update hamming_test.spec.js

Removing .compute from the test makes users use `module.exports = compute;` to export the function, instead of `exports.compute = compute;`.

This change keeps this test consistent with the tests prior to hamming.