[Pkg-javascript-commits] [node-sha.js] 36/237: use bops
Bastien Roucariès
rouca at moszumanska.debian.org
Fri May 5 09:02:53 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-sha.js.
commit 51674113e9dc35a54d1ec564c51374ad869252b9
Author: Dominic Tarr <dominic.tarr at gmail.com>
Date: Fri Dec 27 14:32:52 2013 +0700
use bops
---
test/write.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/test/write.js b/test/write.js
index 2551c23..0285ea8 100644
--- a/test/write.js
+++ b/test/write.js
@@ -1,8 +1,8 @@
var tape = require('tape')
var write = require('../util').write
var hexpp = require('../hexpp')
-var b64 = require('base64-js')
var u = require('../util')
+var to = require('bops/typedarray/to')
function toBuffer (string) {
var a = new Uint8Array(string.length)
@@ -30,9 +30,9 @@ var FOO = toBuffer('foo')
var BAR = toBuffer('bar')
var BAZ = toBuffer('baz')
-var FOO64 = b64.fromByteArray(FOO)
-var BAR64 = b64.fromByteArray(BAR)
-var BAZ64 = b64.fromByteArray(BAZ)
+var FOO64 = to(FOO, 'base64')
+var BAR64 = to(BAR, 'base64')
+var BAZ64 = to(BAZ, 'base64')
var FOOx = u.toHex('foo')
var BARx = u.toHex('bar')
var BAZx = u.toHex('baz')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-sha.js.git
More information about the Pkg-javascript-commits
mailing list