Skip to content

Commit 9b5eca8

Browse files
committed
[Tests] drop node requirement to v3
1 parent 807084c commit 9b5eca8

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

.github/workflows/node-aught.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ jobs:
66
tests:
77
uses: ljharb/actions/.github/workflows/node.yml@main
88
with:
9-
range: '>= 4 < 10'
9+
range: '>= 3 < 10'
1010
type: minors
1111
command: npm run tests-only

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
"author": "Dominic Tarr <[email protected]> (dominictarr.com)",
3131
"license": "(MIT AND BSD-3-Clause)",
3232
"engines": {
33-
"node": ">= 4"
33+
"node": ">= 3"
3434
}
3535
}

test/hash.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
'use strict';
22

33
var tape = require('tape');
4+
var Buffer = require('safe-buffer').Buffer;
5+
46
var Hash = require('../hash');
7+
58
var hex = '0A1B2C3D4E5F6G7H';
69

710
function equal(t, a, b) {

test/test.js

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
var crypto = require('crypto');
44
var tape = require('tape');
5+
var Buffer = require('safe-buffer').Buffer;
6+
57
var Sha1 = require('../').sha1;
68

79
var inputs = [

0 commit comments

Comments
 (0)