diff options
Diffstat (limited to 'test/snapshots/code-simplification-neql-define.js')
-rw-r--r-- | test/snapshots/code-simplification-neql-define.js | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/snapshots/code-simplification-neql-define.js b/test/snapshots/code-simplification-neql-define.js new file mode 100644 index 000000000..6c0e684df --- /dev/null +++ b/test/snapshots/code-simplification-neql-define.js @@ -0,0 +1,29 @@ +var testFailed = false; +const invariant = () => { + testFailed = true; +}; +var $$m = (arg) => { + var module = { exports: {} }, exports = module.exports; + return arg(module, exports); +}; +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); +} + +//# sourceMappingURL=http://localhost:8080/code-simplification-neql-define.js.map |