aboutsummaryrefslogtreecommitdiff
path: root/test/snippets/code-simplification-neql-define.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-06-22 23:21:48 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-06-22 23:21:48 -0700
commit729d445b6885f69dd2c6355f38707bd42851c791 (patch)
treef87a7c408929ea3f57bbb7ace380cf869da83c0e /test/snippets/code-simplification-neql-define.js
parent25f820c6bf1d8ec6d444ef579cc036b8c0607b75 (diff)
downloadbun-729d445b6885f69dd2c6355f38707bd42851c791.tar.gz
bun-729d445b6885f69dd2c6355f38707bd42851c791.tar.zst
bun-729d445b6885f69dd2c6355f38707bd42851c791.zip
change the directory structurejarred/rename
Diffstat (limited to 'test/snippets/code-simplification-neql-define.js')
-rw-r--r--test/snippets/code-simplification-neql-define.js56
1 files changed, 56 insertions, 0 deletions
diff --git a/test/snippets/code-simplification-neql-define.js b/test/snippets/code-simplification-neql-define.js
new file mode 100644
index 000000000..ed5c5c395
--- /dev/null
+++ b/test/snippets/code-simplification-neql-define.js
@@ -0,0 +1,56 @@
+var testFailed = false;
+const invariant = () => {
+ testFailed = true;
+};
+var $$m = (arg) => {
+ var module = { exports: {} },
+ exports = module.exports;
+ return arg(module, exports);
+};
+var size = 100,
+ ttl = 3600;
+
+export var $f332019d = $$m(
+ {
+ "relay-runtime/lib/network/RelayQueryResponseCache.js": (
+ module,
+ exports
+ ) => {
+ var RelayQueryResponseCache = function () {
+ var foo = function RelayQueryResponseCache(_ref) {
+ var size = _ref.size,
+ ttl = _ref.ttl;
+ !(size > 0)
+ ? process.env.NODE_ENV !== "production"
+ ? invariant(
+ false,
+ "RelayQueryResponseCache: Expected the max cache size to be > 0, got " +
+ "`%s`.",
+ size
+ )
+ : invariant(false)
+ : void 0;
+ !(ttl > 0)
+ ? process.env.NODE_ENV !== "production"
+ ? invariant(
+ false,
+ "RelayQueryResponseCache: Expected the max ttl to be > 0, got `%s`.",
+ ttl
+ )
+ : invariant(false)
+ : void 0;
+ };
+ foo({ size: 100, ttl: 3600 });
+ };
+ RelayQueryResponseCache();
+ },
+ }["relay-runtime/lib/network/RelayQueryResponseCache.js"]
+);
+
+export function test() {
+ var foo = () => result;
+ // $f332019d;
+
+ if (testFailed) throw new Error("invariant should not be called");
+ return testDone(import.meta.url);
+}