1 |
- {"ast":null,"code":"'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\nexports.default = exports.test = exports.serialize = void 0;\n\nvar _collections = require('../collections');\n\nvar Symbol = global['jest-symbol-do-not-touch'] || global.Symbol;\nconst asymmetricMatcher = typeof Symbol === 'function' && Symbol.for ? Symbol.for('jest.asymmetricMatcher') : 0x1357a5;\nconst SPACE = ' ';\n\nconst serialize = (val, config, indentation, depth, refs, printer) => {\n const stringedValue = val.toString();\n\n if (stringedValue === 'ArrayContaining' || stringedValue === 'ArrayNotContaining') {\n if (++depth > config.maxDepth) {\n return '[' + stringedValue + ']';\n }\n\n return stringedValue + SPACE + '[' + (0, _collections.printListItems)(val.sample, config, indentation, depth, refs, printer) + ']';\n }\n\n if (stringedValue === 'ObjectContaining' || stringedValue === 'ObjectNotContaining') {\n if (++depth > config.maxDepth) {\n return '[' + stringedValue + ']';\n }\n\n return stringedValue + SPACE + '{' + (0, _collections.printObjectProperties)(val.sample, config, indentation, depth, refs, printer) + '}';\n }\n\n if (stringedValue === 'StringMatching' || stringedValue === 'StringNotMatching') {\n return stringedValue + SPACE + printer(val.sample, config, indentation, depth, refs);\n }\n\n if (stringedValue === 'StringContaining' || stringedValue === 'StringNotContaining') {\n return stringedValue + SPACE + printer(val.sample, config, indentation, depth, refs);\n }\n\n return val.toAsymmetricMatcher();\n};\n\nexports.serialize = serialize;\n\nconst test = val => val && val.$$typeof === asymmetricMatcher;\n\nexports.test = test;\nconst plugin = {\n serialize,\n test\n};\nvar _default = plugin;\nexports.default = _default;","map":{"version":3,"sources":["/Users/jane/Documents/Курс Front-end/HW8/myproject/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"],"names":["Object","defineProperty","exports","value","default","test","serialize","_collections","require","Symbol","global","asymmetricMatcher","for","SPACE","val","config","indentation","depth","refs","printer","stringedValue","toString","maxDepth","printListItems","sample","printObjectProperties","toAsymmetricMatcher","$$typeof","plugin","_default"],"mappings":"AAAA;;AAEAA,MAAM,CA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AAC,GAAGN,YAAY,CAACkB,qBAAjB,EACEX,GAAG,CAACU,MADN,EAEET,MAFF,EAGEC,WAHF,EAIEC,KAJF,EAKEC,IALF,EAMEC,OANF,CAHA,GAWA,GAZF;AAcD;;AAED,MACEC,aAAa,KAAK,gBAAlB,IACAA,aAAa,KAAK,mBAFpB,EAGE;AACA,WACEA,aAAa,GACbP,KADA,GAEAM,OAAO,CAACL,GAAG,CAACU,MAAL,EAAaT,MAAb,EAAqBC,WAArB,EAAkCC,KAAlC,EAAyCC,IAAzC,CAHT;AAKD;;AAED,MACEE,aAAa,KAAK,kBAAlB,IACAA,aAAa,KAAK,qBAFpB,EAGE;AACA,WACEA,aAAa,GACbP,KADA,GAEAM,OAAO,CAACL,GAAG,CAACU,MAAL,EAAaT,MAAb,EAAqBC,WAArB,EAAkCC,KAAlC,EAAyCC,IAAzC,CAHT;AAKD;;AAED,SAAOJ,GAAG,CAACY,mBAAJ,EAAP;AACD,CA1ED;;AA4EAxB,OAAO,CAACI,SAAR,GAAoBA,SAApB;;AAEA,MAAMD,IAAI,GAAGS,GAAG,IAAIA,GAAG,IAAIA,GAAG,CAACa,QAAJ,KAAiBhB,iBAA5C;;AAEAT,OAAO,CAACG,IAAR,GAAeA,IAAf;AACA,MAAMuB,MAAM,GAAG;AACbtB,EAAAA,SADa;AAEbD,EAAAA;AAFa,CAAf;AAIA,IAAIwB,QAAQ,GAAGD,MAAf;AACA1B,OAAO,CAACE,OAAR,GAAkByB,QAAlB","sourcesContent":["'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\nexports.default = exports.test = exports.serialize = void 0;\n\nvar _collections = require('../collections');\n\nvar Symbol = global['jest-symbol-do-not-touch'] || global.Symbol;\nconst asymmetricMatcher =\n typeof Symbol === 'function' && Symbol.for\n ? Symbol.for('jest.asymmetricMatcher')\n : 0x1357a5;\nconst SPACE = ' ';\n\nconst serialize = (val, config, indentation, depth, refs, printer) => {\n const stringedValue = val.toString();\n\n if (\n stringedValue === 'ArrayContaining' ||\n stringedValue === 'ArrayNotContaining'\n ) {\n if (++depth > config.maxDepth) {\n return '[' + stringedValue + ']';\n }\n\n return (\n stringedValue +\n SPACE +\n '[' +\n (0, _collections.printListItems)(\n val.sample,\n config,\n indentation,\n depth,\n refs,\n printer\n ) +\n ']'\n );\n }\n\n if (\n stringedValue === 'ObjectContaining' ||\n stringedValue === 'ObjectNotContaining'\n ) {\n if (++depth > config.maxDepth) {\n return '[' + stringedValue + ']';\n }\n\n return (\n stringedValue +\n SPACE +\n '{' +\n (0, _collections.printObjectProperties)(\n val.sample,\n config,\n indentation,\n depth,\n refs,\n printer\n ) +\n '}'\n );\n }\n\n if (\n stringedValue === 'StringMatching' ||\n stringedValue === 'StringNotMatching'\n ) {\n return (\n stringedValue +\n SPACE +\n printer(val.sample, config, indentation, depth, refs)\n );\n }\n\n if (\n stringedValue === 'StringContaining' ||\n stringedValue === 'StringNotContaining'\n ) {\n return (\n stringedValue +\n SPACE +\n printer(val.sample, config, indentation, depth, refs)\n );\n }\n\n return val.toAsymmetricMatcher();\n};\n\nexports.serialize = serialize;\n\nconst test = val => val && val.$$typeof === asymmetricMatcher;\n\nexports.test = test;\nconst plugin = {\n serialize,\n test\n};\nvar _default = plugin;\nexports.default = _default;\n"]},"metadata":{},"sourceType":"script"}
|