File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 2222 "test:cover" : " npm run cover:clean && npm-run-all 'test:cover:*' && npm run cover:report" ,
2323 "test:cover:purejs" : " npx nyc --no-clean npm run test:purejs" ,
2424 "test:cover:te" : " npx nyc --no-clean npm run test:te" ,
25+ "test:deno" : " deno test test/deno_test.ts" ,
2526 "cover:clean" : " rimraf .nyc_output coverage/" ,
2627 "cover:report" : " npx nyc report --reporter=text-summary --reporter=html --reporter=json" ,
2728 "test:browser" : " karma start --single-run" ,
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env deno run
2+
3+ /* eslint-disable */
4+ import {
5+ assertEquals ,
6+ } from "https://deno.land/std/testing/asserts.ts" ;
7+ import * as msgpack from "../dist.es5+esm/index.mjs" ;
8+
9+ Deno . test ( "Hello, world!" , ( ) => {
10+ const encoded = msgpack . encode ( "Hello, world!" ) ;
11+ const decoded = msgpack . decode ( encoded ) ;
12+ assertEquals ( decoded , "Hello, world!" ) ;
13+ } ) ;
You can’t perform that action at this time.
0 commit comments