Update sha1-tests.ts

This commit is contained in:
JD-Robbs
2017-01-09 18:15:03 +00:00
committed by GitHub
parent 5e054896cd
commit 58af9b8807

View File

@@ -7,7 +7,7 @@ import sha1 = require("sha1");
* sha1(message)
* message -- String or Buffer
* returns String
*
*
* Usage
****************************************************
* var sha1 = require('sha1'); *
@@ -15,10 +15,10 @@ import sha1 = require("sha1");
****************************************************
* This will print the following
* 6f9b9af3cd6e8b8a73c2cdced37fe9f59226e27d
*
*
* It supports buffers, too
****************************************************
* var fs = require('fs'); *
****************************************************
* var fs = require('fs'); *
* var sha1 = require('sha1'); *
* *
* fs.readFile('example.txt', function(err, buf) { *
@@ -32,5 +32,5 @@ const testTwo = sha1('message', {asString: true});
const testThree = sha1('message', {asBytes: true});
fs.readFile('sha1.d.ts', function(err: Error, buf: Buffer) {
console.log(sha1(buf));
console.log(sha1(buf));
});