From 90c395bdac2b3e966e4d9f7022fd8f1c75fa24c2 Mon Sep 17 00:00:00 2001
From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Date: Thu, 12 Jan 2023 12:57:27 -0800
Subject: Update inspect.test.js
---
test/bun.js/inspect.test.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'test/bun.js/inspect.test.js')
diff --git a/test/bun.js/inspect.test.js b/test/bun.js/inspect.test.js
index 8789b7aba..43f7536ef 100644
--- a/test/bun.js/inspect.test.js
+++ b/test/bun.js/inspect.test.js
@@ -2,7 +2,7 @@ import { it, expect, describe } from "bun:test";
it("Blob inspect", () => {
expect(Bun.inspect(new Blob(["123"]))).toBe(`Blob (3 bytes)`);
- expect(Bun.inspect(new Blob(["123".repeat(900)]))).toBe(`Blob (3 KB)`);
+ expect(Bun.inspect(new Blob(["123".repeat(900)]))).toBe(`Blob (2.70 KB)`);
expect(Bun.inspect(Bun.file("/tmp/file.txt")))
.toBe(`FileRef ("/tmp/file.txt") {
type: "text/plain;charset=utf-8"
--
cgit v1.2.3
From 38f9bb96df7c0a253f5e26ad81c88a0a1179a0d3 Mon Sep 17 00:00:00 2001
From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Date: Thu, 12 Jan 2023 13:20:10 -0800
Subject: use .skip() for failing test
---
test/bun.js/inspect.test.js | 35 +++++++++++++++++------------------
1 file changed, 17 insertions(+), 18 deletions(-)
(limited to 'test/bun.js/inspect.test.js')
diff --git a/test/bun.js/inspect.test.js b/test/bun.js/inspect.test.js
index 43f7536ef..738442211 100644
--- a/test/bun.js/inspect.test.js
+++ b/test/bun.js/inspect.test.js
@@ -30,26 +30,25 @@ it("Blob inspect", () => {
}`);
});
-// this test is currently failing!
-// it("utf16 property name", () => {
-// var { Database } = require("bun:sqlite");
-// const db = Database.open(":memory:");
-// expect("笑".codePointAt(0)).toBe(31505);
+it.skip("utf16 property name", () => {
+ var { Database } = require("bun:sqlite");
+ const db = Database.open(":memory:");
+ expect("笑".codePointAt(0)).toBe(31505);
-// // latin1 escaping identifier issue
-// expect(Object.keys({ 笑: "hey" })[0].codePointAt(0)).toBe(31505);
+ // latin1 escaping identifier issue
+ expect(Object.keys({ 笑: "hey" })[0].codePointAt(0)).toBe(31505);
-// const output = JSON.stringify(
-// [
-// {
-// 笑: "😀",
-// },
-// ],
-// null,
-// 2,
-// );
-// expect(Bun.inspect(db.prepare("select '😀' as 笑").all())).toBe(output);
-// });
+ const output = JSON.stringify(
+ [
+ {
+ 笑: "😀",
+ },
+ ],
+ null,
+ 2,
+ );
+ expect(Bun.inspect(db.prepare("select '😀' as 笑").all())).toBe(output);
+});
it("latin1", () => {
expect(Bun.inspect("English")).toBe("English");
--
cgit v1.2.3
n>
Unnamed repository; edit this file 'description' to name the repository. | |
Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|