Install actions/artifact@v1 as artifact-legacy and v2 as artifact

This commit is contained in:
Angela P Wen
2024-09-25 12:06:16 -07:00
parent 46e0c78da9
commit 76b799de1d
5370 changed files with 2176476 additions and 71812 deletions
+17
View File
@@ -0,0 +1,17 @@
var binary = require('../');
var test = require('tap').test;
test('flush', function (t) {
t.plan(1);
binary.parse(new Buffer([ 97, 98, 99, 100, 101, 102 ]))
.word8('a')
.word16be('b')
.word16be('c')
.flush()
.word8('d')
.tap(function (vars) {
t.same(vars, { d : 102 });
})
;
});