From 4bb41b95a826892107b7ff3ff610d23d5afa96b6 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Thu, 23 Sep 2021 22:01:34 -0700 Subject: :camera: --- .../code-simplification-neql-define.debug.js | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 integration/snapshots/code-simplification-neql-define.debug.js (limited to 'integration/snapshots/code-simplification-neql-define.debug.js') diff --git a/integration/snapshots/code-simplification-neql-define.debug.js b/integration/snapshots/code-simplification-neql-define.debug.js new file mode 100644 index 000000000..8c3ef20df --- /dev/null +++ b/integration/snapshots/code-simplification-neql-define.debug.js @@ -0,0 +1,28 @@ +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) && invariant(false, "RelayQueryResponseCache: Expected the max cache size to be > 0, got " + "`%s`.", size); + !(ttl > 0) && invariant(false, "RelayQueryResponseCache: Expected the max ttl to be > 0, got `%s`.", ttl); + }; + foo({size: 100, ttl: 3600 }); + }; + RelayQueryResponseCache(); + } +}["relay-runtime/lib/network/RelayQueryResponseCache.js"]); +export function test() { + var foo = () => result; + if (testFailed) + throw new Error("invariant should not be called"); + return testDone(import.meta.url); +} -- cgit v1.2.3