FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

esm migration for tests by gfx · Pull Request #282 · msgpack/msgpack-javascript · GitHub

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .js  (1) .ts  (2) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
6 changes: 2 additions & 4 deletions .mocharc.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
'use strict';
import "ts-node/register";

require("ts-node/register");

module.exports = {
export default {
diff: true,
extension: ['ts'],
package: '../package.json',
Expand Down
4 changes: 1 addition & 3 deletions test/decode-blob.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import { encode, decode, decodeAsync } from "../src/index.ts";
this.skip();
}

// use any because the type of Blob#stream() in @types/node does not make sense here.
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
assert.deepStrictEqual(await decodeAsync(blob.stream() as any), "Hello!");
assert.deepStrictEqual(await decodeAsync(blob.stream()), "Hello!");
});
});
2 changes: 1 addition & 1 deletion test/readme.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { deepStrictEqual } from "assert";
import { encode, decode } from "../src/index";
import { encode, decode } from "../src/index.ts";

describe("README", () => {
context("## Synopsis", () => {
Expand Down
Loading

Back | FazBrowse Home | New Git URL