Permalink
Browse files

remove hashlib

  • Loading branch information...
1 parent 805971f commit 6808bfcf7385f238f6558c089cac2ae4d80e145d @infynyxx infynyxx committed Aug 3, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 test/test_sailthru_util.coffee
@@ -79,10 +79,9 @@ exports.testGetSignatureString = (test) ->
exports.testGetSignatureHash = (test) ->
- {md5} = require 'hashlib'
test.expect 1
secret = '1246helloMan'
- expected1 = md5(secret + ['sailthru', 1, 2].sort().join(''))
+ expected1 = SailthruUtil.md5(secret + ['sailthru', 1, 2].sort().join(''))
params1 =
a: ['sailthru', 1, 2]
real1 = SailthruUtil.getSignatureHash params1, secret

0 comments on commit 6808bfc

Please sign in to comment.