aboutsummaryrefslogtreecommitdiff
path: root/test/snippets/code-simplification-neql-define.js
blob: c7676dc9b61463bdbf402b43197dcfa396c550c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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);
}