aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-08-21 01:00:27 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-08-21 01:00:27 -0700
commitc4580ee2ca8fb883c5357546edad94bc93026248 (patch)
treee8b59f46f4e7211469cdb5c70b508a46da6c39a4 /test
parenta8fa61ed68aa677e1a57c24b0fa93a662ee840d9 (diff)
downloadbun-c4580ee2ca8fb883c5357546edad94bc93026248.tar.gz
bun-c4580ee2ca8fb883c5357546edad94bc93026248.tar.zst
bun-c4580ee2ca8fb883c5357546edad94bc93026248.zip
Rename reactdom-bun -> react-dom-server.bun
Diffstat (limited to 'test')
-rw-r--r--test/bun.js/react-dom-server.bun.js (renamed from test/bun.js/reactdom-bun.js)4
-rw-r--r--test/bun.js/react-dom.test.tsx2
2 files changed, 2 insertions, 4 deletions
diff --git a/test/bun.js/reactdom-bun.js b/test/bun.js/react-dom-server.bun.js
index c489314fb..fc578c8a9 100644
--- a/test/bun.js/reactdom-bun.js
+++ b/test/bun.js/react-dom-server.bun.js
@@ -7,7 +7,6 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
-const escapeHTML = Bun.escapeHTML;
var aa = require("react");
function k(a) {
for (
@@ -200,8 +199,7 @@ Object.keys(z).forEach(function (a) {
});
var ma = /["'&<>]/;
function A(a) {
- if ("boolean" === typeof a || "number" === typeof a) return "" + a;
- return escapeHTML(a);
+ return Bun.escapeHTML(a);
}
var na = /([A-Z])/g,
oa = /^ms-/,
diff --git a/test/bun.js/react-dom.test.tsx b/test/bun.js/react-dom.test.tsx
index d204e88e0..42f4c7631 100644
--- a/test/bun.js/react-dom.test.tsx
+++ b/test/bun.js/react-dom.test.tsx
@@ -10,7 +10,7 @@ import { heapStats } from "bun:jsc";
import { describe, expect, it } from "bun:test";
import { renderToReadableStream as renderToReadableStreamBrowser } from "react-dom/server.browser";
import { gc } from "./gc";
-import { renderToReadableStream as renderToReadableStreamBun } from "./reactdom-bun";
+import { renderToReadableStream as renderToReadableStreamBun } from "./react-dom-server.bun";
import React from "react";
Object.defineProperty(renderToReadableStreamBrowser, "name", {