testeranto 0.189.0 → 0.197.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ALL_LICENSES.txt +11246 -0
- package/LICENSE +21 -0
- package/default-project.json +44 -0
- package/design-editor/DesignEditor.tsx +247 -0
- package/design-editor/index.ts +2 -0
- package/design-editor/server.ts +121 -0
- package/design-editor/types.ts +16 -0
- package/designs/default-project.json +210 -0
- package/dist/common/design-editor/DesignEditor.js +239 -0
- package/dist/common/design-editor/index.js +18 -0
- package/dist/common/design-editor/server.js +98 -0
- package/dist/common/design-editor/types.js +2 -0
- package/dist/common/src/App.js +11 -1
- package/dist/common/src/PM/PM_WithEslintAndTsc.js +8 -1
- package/dist/common/src/PM/base.js +1 -0
- package/dist/common/src/PM/main.js +370 -4
- package/dist/common/src/PM/node.js +4 -2
- package/dist/common/src/PM/pure.js +15 -57
- package/dist/common/src/PM/web.js +5 -3
- package/dist/common/src/Pure.test.js +46 -78
- package/dist/common/src/ReportServer.js +8 -2
- package/dist/common/src/build.js +1 -1
- package/dist/common/src/components/DesignEditorPage.js +169 -0
- package/dist/common/src/components/pure/AppFrame.js +62 -13
- package/dist/common/src/components/pure/ModalContent.test/implementation.js +13 -11
- package/dist/common/src/components/pure/ModalContent.test/index.js +48 -2
- package/dist/common/src/components/pure/ModalContent.test/specification.js +2 -2
- package/dist/common/src/components/pure/NavBar.js +9 -10
- package/dist/common/src/components/pure/ProcessManager.js +112 -0
- package/dist/common/src/components/pure/ProcessManagerView.js +237 -0
- package/dist/common/src/components/pure/ProjectPageView.test/implementation.js +134 -106
- package/dist/common/src/components/pure/ProjectsPageView.js +18 -12
- package/dist/common/src/components/pure/SettingsButton.js +4 -74
- package/dist/common/src/components/pure/SingleProcessView.js +214 -0
- package/dist/common/src/components/pure/TestPageView.js +457 -78
- package/dist/common/src/components/pure/TestPageView.test/implementation.js +90 -135
- package/dist/common/src/components/stateful/FeaturesReporter.js +1 -1
- package/dist/common/src/components/stateful/FileTree.js +40 -0
- package/dist/common/src/components/stateful/ProcessManagerPage.js +112 -0
- package/dist/common/src/components/stateful/ProjectPage.js +6 -5
- package/dist/common/src/components/stateful/ProjectsPage.js +32 -6
- package/dist/common/src/components/stateful/SettingsPage.js +72 -0
- package/dist/common/src/components/stateful/SingleProcessPage.js +147 -0
- package/dist/common/src/components/stateful/TestPage.js +104 -8
- package/dist/common/src/components/stateful/TextEditorPage.js +154 -0
- package/dist/common/src/esbuildConfigs/inputFilesPlugin.js +3 -4
- package/dist/common/src/lib/BaseSuite.js +6 -3
- package/dist/common/src/lib/BaseSuite.test/mock.js +17 -30
- package/dist/common/src/lib/BaseSuite.test/test.js +33 -31
- package/dist/common/src/lib/abstractBase.js +28 -8
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.adapter.js +12 -6
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.implementation.js +12 -12
- package/dist/common/src/lib/basebuilder.js +1 -9
- package/dist/common/src/lib/classBuilder.js +3 -3
- package/dist/common/src/lib/core.js +3 -5
- package/dist/common/src/lib/index.js +11 -14
- package/dist/common/src/lib/pmProxy.js +37 -14
- package/dist/common/src/lib/pmProxy.test/adapter.js +12 -2
- package/dist/common/src/lib/pmProxy.test/implementation.js +73 -43
- package/dist/common/src/lib/pmProxy.test/specification.js +3 -0
- package/dist/common/src/utils/api.js +44 -33
- package/dist/common/src/utils/logFiles.js +48 -22
- package/dist/common/src/utils/makePrompt.js +5 -4
- package/dist/common/testeranto.config.js +15 -13
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/design-editor/DesignEditor.js +203 -0
- package/dist/module/design-editor/index.js +2 -0
- package/dist/module/design-editor/server.js +92 -0
- package/dist/module/src/App.js +11 -1
- package/dist/module/src/PM/PM_WithEslintAndTsc.js +8 -1
- package/dist/module/src/PM/base.js +1 -0
- package/dist/module/src/PM/main.js +370 -4
- package/dist/module/src/PM/node.js +4 -2
- package/dist/module/src/PM/pure.js +15 -57
- package/dist/module/src/PM/web.js +5 -3
- package/dist/module/src/Pure.test.js +46 -78
- package/dist/module/src/ReportServer.js +8 -2
- package/dist/module/src/build.js +1 -1
- package/dist/module/src/components/DesignEditorPage.js +132 -0
- package/dist/module/src/components/pure/AppFrame.js +30 -11
- package/dist/module/src/components/pure/ModalContent.test/implementation.js +13 -11
- package/dist/module/src/components/pure/ModalContent.test/index.js +48 -2
- package/dist/module/src/components/pure/ModalContent.test/specification.js +2 -2
- package/dist/module/src/components/pure/NavBar.js +10 -11
- package/dist/module/src/components/pure/ProcessManager.js +75 -0
- package/dist/module/src/components/pure/ProcessManagerView.js +200 -0
- package/dist/module/src/components/pure/ProjectPageView.test/implementation.js +134 -106
- package/dist/module/src/components/pure/ProjectsPageView.js +20 -14
- package/dist/module/src/components/pure/SettingsButton.js +5 -42
- package/dist/module/src/components/pure/SingleProcessView.js +214 -0
- package/dist/module/src/components/pure/TestPageView.js +425 -76
- package/dist/module/src/components/pure/TestPageView.test/implementation.js +90 -135
- package/dist/module/src/components/stateful/FeaturesReporter.js +1 -1
- package/dist/module/src/components/stateful/FileTree.js +33 -0
- package/dist/module/src/components/stateful/ProcessManagerPage.js +75 -0
- package/dist/module/src/components/stateful/ProjectPage.js +6 -5
- package/dist/module/src/components/stateful/ProjectsPage.js +32 -6
- package/dist/module/src/components/stateful/SettingsPage.js +35 -0
- package/dist/module/src/components/stateful/SingleProcessPage.js +110 -0
- package/dist/module/src/components/stateful/TestPage.js +104 -8
- package/dist/module/src/components/stateful/TextEditorPage.js +117 -0
- package/dist/module/src/esbuildConfigs/inputFilesPlugin.js +3 -4
- package/dist/module/src/lib/BaseSuite.js +6 -3
- package/dist/module/src/lib/BaseSuite.test/mock.js +17 -30
- package/dist/module/src/lib/BaseSuite.test/test.js +33 -31
- package/dist/module/src/lib/abstractBase.js +28 -8
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.adapter.js +12 -6
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.implementation.js +12 -12
- package/dist/module/src/lib/basebuilder.js +1 -9
- package/dist/module/src/lib/classBuilder.js +3 -3
- package/dist/module/src/lib/core.js +3 -5
- package/dist/module/src/lib/index.js +11 -14
- package/dist/module/src/lib/pmProxy.js +37 -14
- package/dist/module/src/lib/pmProxy.test/adapter.js +12 -2
- package/dist/module/src/lib/pmProxy.test/implementation.js +73 -43
- package/dist/module/src/lib/pmProxy.test/specification.js +3 -0
- package/dist/module/src/utils/api.js +45 -34
- package/dist/module/src/utils/logFiles.js +45 -20
- package/dist/module/src/utils/makePrompt.js +5 -4
- package/dist/module/testeranto.config.js +15 -13
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/App.css +54 -513
- package/dist/prebuild/App.js +13296 -2438
- package/dist/prebuild/ReportServer.mjs +104 -6
- package/dist/prebuild/build.mjs +8 -5
- package/dist/prebuild/run.mjs +389 -37
- package/dist/types/design-editor/DesignEditor.d.ts +18 -0
- package/dist/types/design-editor/server.d.ts +1 -0
- package/dist/types/{PM → src/PM}/index.d.ts +1 -1
- package/dist/types/{PM → src/PM}/main.d.ts +19 -0
- package/dist/types/{PM → src/PM}/pure.d.ts +7 -7
- package/dist/types/{Pure.test.d.ts → src/Pure.test.d.ts} +13 -1
- package/dist/types/src/components/DesignEditorPage.d.ts +1 -0
- package/dist/types/{components → src/components}/pure/AppFrame.d.ts +3 -1
- package/dist/types/{components/pure/ProjectPageView.test → src/components/pure/ModalContent.test}/index.d.ts +2 -1
- package/dist/types/{components → src/components}/pure/NavBar.d.ts +4 -0
- package/dist/types/src/components/pure/ProcessManager.d.ts +8 -0
- package/dist/types/src/components/pure/ProcessManagerView.d.ts +20 -0
- package/dist/types/{components → src/components}/pure/ProjectsPageView.d.ts +1 -1
- package/dist/types/src/components/pure/SettingsButton.d.ts +2 -0
- package/dist/types/{components → src/components}/pure/TestPageView.test/implementation.d.ts +3 -2
- package/dist/types/src/components/pure/TestPageView.test/index.d.ts +3 -0
- package/dist/types/src/components/stateful/FileTree.d.ts +8 -0
- package/dist/types/src/components/stateful/ProcessManagerPage.d.ts +2 -0
- package/dist/types/src/components/stateful/SettingsPage.d.ts +2 -0
- package/dist/types/src/components/stateful/SingleProcessPage.d.ts +2 -0
- package/dist/types/src/components/stateful/TextEditorPage.d.ts +1 -0
- package/dist/types/{lib → src/lib}/BaseSuite.test/mock.d.ts +3 -3
- package/dist/types/{lib → src/lib}/basebuilder.d.ts +1 -1
- package/dist/types/{lib → src/lib}/index.d.ts +1 -1
- package/dist/types/{lib → src/lib}/pmProxy.test/mockPMBase.d.ts +1 -1
- package/dist/types/src/run.d.ts +1 -0
- package/dist/types/src/utils/logFiles.d.ts +71 -0
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/docs/test-page-components.md +91 -0
- package/package.json +27 -8
- package/src/App.tsx +11 -0
- package/src/PM/PM_WithEslintAndTsc.ts +9 -4
- package/src/PM/base.ts +1 -0
- package/src/PM/index.ts +1 -1
- package/src/PM/main.ts +424 -8
- package/src/PM/node.ts +5 -2
- package/src/PM/pure.ts +23 -61
- package/src/PM/web.ts +7 -3
- package/src/Pure.test.ts +63 -99
- package/src/README.md +20 -1
- package/src/ReportServer.ts +10 -3
- package/src/app.scss +169 -0
- package/src/build.ts +5 -1
- package/src/components/DesignEditorPage.tsx +169 -0
- package/src/components/pure/AppFrame.tsx +121 -16
- package/src/components/pure/ModalContent.test/implementation.tsx +14 -12
- package/src/components/pure/ModalContent.test/index.tsx +58 -6
- package/src/components/pure/ModalContent.test/specification.ts +2 -2
- package/src/components/pure/NavBar.tsx +31 -15
- package/src/components/pure/ProcessManager.tsx +117 -0
- package/src/components/pure/ProcessManagerView.tsx +414 -0
- package/src/components/pure/ProjectPageView.test/implementation.tsx +136 -106
- package/src/components/pure/ProjectPageView.test/index.tsx +0 -2
- package/src/components/pure/ProjectsPageView.tsx +41 -31
- package/src/components/pure/SettingsButton.tsx +7 -62
- package/src/components/pure/SingleProcessView.tsx +235 -0
- package/src/components/pure/TestPageView.test/implementation.ts +115 -147
- package/src/components/pure/TestPageView.test/specification.ts +0 -1
- package/src/components/pure/TestPageView.tsx +821 -100
- package/src/components/stateful/FeaturesReporter.tsx +1 -1
- package/src/components/stateful/FileTree.tsx +66 -0
- package/src/components/stateful/ProcessManagerPage.tsx +108 -0
- package/src/components/stateful/ProjectPage.tsx +6 -5
- package/src/components/stateful/ProjectsPage.tsx +36 -7
- package/src/components/stateful/SettingsPage.tsx +82 -0
- package/src/components/stateful/SingleProcessPage.tsx +155 -0
- package/src/components/stateful/TestPage.tsx +128 -20
- package/src/components/stateful/TextEditorPage.tsx +170 -0
- package/src/esbuildConfigs/inputFilesPlugin.ts +3 -4
- package/src/lib/BaseSuite.test/mock.ts +20 -41
- package/src/lib/BaseSuite.test/test.ts +38 -42
- package/src/lib/BaseSuite.ts +6 -3
- package/src/lib/abstractBase.ts +33 -14
- package/src/lib/baseBuilder.test/baseBuilder.test.adapter.ts +14 -7
- package/src/lib/baseBuilder.test/baseBuilder.test.implementation.ts +15 -14
- package/src/lib/basebuilder.ts +4 -9
- package/src/lib/classBuilder.ts +8 -10
- package/src/lib/core.ts +3 -19
- package/src/lib/index.ts +19 -19
- package/src/lib/pmProxy.test/adapter.ts +10 -2
- package/src/lib/pmProxy.test/implementation.ts +108 -57
- package/src/lib/pmProxy.test/mockPMBase.ts +1 -1
- package/src/lib/pmProxy.test/specification.ts +11 -0
- package/src/lib/pmProxy.ts +40 -15
- package/src/style.scss +3 -502
- package/src/templates/frontpage.html +317 -40
- package/src/templates/frontpage.md +79 -0
- package/src/themes.scss +40 -8
- package/src/utils/api.ts +47 -44
- package/src/utils/logFiles.ts +57 -23
- package/src/utils/makePrompt.ts +5 -4
- package/stargazers.txt +15 -0
- package/stargzers.js +68 -0
- package/testeranto/App.css +54 -513
- package/testeranto/App.js +13296 -2438
- package/testeranto/bundles/node/core/{chunk-L67RWZ4W.mjs → chunk-4CSH4UJE.mjs} +89 -116
- package/testeranto/bundles/node/core/{chunk-JBB5E3XJ.mjs → chunk-4JTDLQVA.mjs} +4 -9
- package/testeranto/bundles/node/core/chunk-C3APFDUV.mjs +70 -0
- package/testeranto/bundles/node/core/src/lib/BaseSuite.test/node.test.mjs +30 -42
- package/testeranto/bundles/node/core/src/lib/baseBuilder.test/baseBuilder.test.node.mjs +27 -31
- package/testeranto/bundles/node/core/src/lib/classBuilder.test/classBuilder.test.mjs +4 -16
- package/testeranto/bundles/node/core/src/lib/core.test/core.test.mjs +16 -27
- package/testeranto/bundles/node/core/src/lib/pmProxy.test/index.mjs +468 -517
- package/testeranto/bundles/pure/core/{chunk-KHJ35R7C.mjs → chunk-62UVCSQC.mjs} +97 -72
- package/testeranto/bundles/pure/core/src/Pure.test.mjs +56 -74
- package/testeranto/bundles/pure/core/src/lib/BaseSuite.test/pure.test.mjs +39 -66
- package/testeranto/bundles/pure/core/src/lib/baseBuilder.test/baseBuilder.test.pure.mjs +25 -19
- package/testeranto/metafiles/node/core.json +2906 -0
- package/testeranto/{bundles/pure/core/metafile.json → metafiles/pure/core.json} +66 -81
- package/testeranto/metafiles/web/core.json +546 -0
- package/testeranto/reports/core/config.json +0 -24
- package/testeranto/reports/core/src/Pure.test/pure/prompt.txt +1 -1
- package/testeranto/reports/core/src/Pure.test/pure/type_errors.txt +59 -94
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/error.log +2 -55
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/info.log +0 -2
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/error.log +3 -33
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/info.log +0 -4
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/error.log +3 -0
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/info.log +0 -2
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/prompt.txt +2 -2
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/type_errors.txt +38 -90
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/prompt.txt +1 -1
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/type_errors.txt +38 -90
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/error.log +2 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/lint_errors.txt +10 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/prompt.txt +3 -3
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/stdout.log +6 -2
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/tests.json +4 -4
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/type_errors.txt +22 -45
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/lint_errors.txt +10 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/prompt.txt +1 -1
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/type_errors.txt +22 -45
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/error.log +2 -0
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/prompt.txt +4 -4
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/tests.json +10 -10
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/type_errors.txt +38 -90
- package/testeranto/reports/core/src/lib/core.test/core.test/node/prompt.txt +4 -4
- package/testeranto/reports/core/src/lib/core.test/core.test/node/type_errors.txt +5 -24
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/lint_errors.txt +6 -14
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/prompt.txt +3 -3
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/stderr.log +88 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/stdout.log +10 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/tests.json +33 -43
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/type_errors.txt +17 -43
- package/testeranto/reports/core/summary.json +15 -51
- package/testeranto/reportsweb_build_errors +546 -0
- package/testeranto.config.ts +16 -13
- package/tsc.log +37 -16
- package/tsconfig.json +3 -2
- package/CNAME +0 -1
- package/README.html +0 -302
- package/dist/common/src/PM/layers/base/PM_Base.js +0 -1
- package/dist/common/src/PM/layers/base/components/PageOperations.js +0 -1
- package/dist/common/src/PM/layers/base/components/PageOperations.testeranto.js +0 -1
- package/dist/common/src/PM/layers/linting/components/Linter.js +0 -1
- package/dist/common/src/PM/layers/linting/components/TypeChecker.js +0 -1
- package/dist/common/src/PM/layers/main/components/SidecarManager.js +0 -1
- package/dist/common/src/PM/layers/main/components/TestRunner.js +0 -1
- package/dist/module/src/PM/layers/base/PM_Base.js +0 -1
- package/dist/module/src/PM/layers/base/components/PageOperations.js +0 -1
- package/dist/module/src/PM/layers/base/components/PageOperations.testeranto.js +0 -1
- package/dist/module/src/PM/layers/linting/components/Linter.js +0 -1
- package/dist/module/src/PM/layers/linting/components/TypeChecker.js +0 -1
- package/dist/module/src/PM/layers/main/components/SidecarManager.js +0 -1
- package/dist/module/src/PM/layers/main/components/TestRunner.js +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/types/PM/layers/base/components/PageOperations.d.ts +0 -0
- package/dist/types/PM/layers/base/components/PageOperations.testeranto.d.ts +0 -0
- package/dist/types/PM/layers/linting/components/Linter.d.ts +0 -0
- package/dist/types/PM/layers/linting/components/TypeChecker.d.ts +0 -0
- package/dist/types/PM/layers/main/components/SidecarManager.d.ts +0 -0
- package/dist/types/PM/layers/main/components/TestRunner.d.ts +0 -0
- package/dist/types/components/pure/SettingsButton.d.ts +0 -3
- package/dist/types/components/pure/TestPageView.test/index.d.ts +0 -32
- package/dist/types/utils/logFiles.d.ts +0 -7
- package/docs.html +0 -590
- package/example.css +0 -351
- package/index.html +0 -138
- package/scripts/compile-docs.js +0 -150
- package/smil30/SMIL-anim.mod.xsd +0 -163
- package/smil30/SMIL-control.mod.xsd +0 -73
- package/smil30/SMIL-layout.mod.xsd +0 -149
- package/smil30/SMIL-link.mod.xsd +0 -145
- package/smil30/SMIL-media.mod.xsd +0 -1646
- package/smil30/SMIL-metainformation.mod.xsd +0 -45
- package/smil30/SMIL-smiltext.mod.xsd +0 -353
- package/smil30/SMIL-state.mod.xsd +0 -133
- package/smil30/SMIL-struct.mod.xsd +0 -70
- package/smil30/SMIL-timing.mod.xsd +0 -105
- package/smil30/SMIL-transition.mod.xsd +0 -229
- package/smil30/SMIL.xsd +0 -63
- package/smil30/its.xsd +0 -42
- package/smil30/smil-attribs-1.mod.xsd +0 -610
- package/smil30/smil-datatypes-1.mod.xsd +0 -72
- package/smil30/smil-framework-1.mod.xsd +0 -45
- package/smil30/xml.xsd +0 -16
- package/src/App.scss +0 -123
- package/src/PM/layers/base/PM_Base.ts +0 -0
- package/src/PM/layers/base/components/PageOperations.testeranto.ts +0 -0
- package/src/PM/layers/base/components/PageOperations.ts +0 -0
- package/src/PM/layers/linting/components/Linter.ts +0 -0
- package/src/PM/layers/linting/components/TypeChecker.ts +0 -0
- package/src/PM/layers/main/components/SidecarManager.ts +0 -0
- package/src/PM/layers/main/components/TestRunner.ts +0 -0
- package/src/fonts.scss +0 -55
- package/style.css +0 -12175
- package/testeranto/bundles/node/core/chunk-ZQRRQYS4.mjs +0 -92
- package/testeranto/bundles/node/core/metafile.json +0 -5735
- package/testeranto/bundles/node/core/src/mothership/test.mjs +0 -24588
- package/testeranto/bundles/web/core/MPLUSRounded1c-Black-O75GP5JI.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-Bold-R524Q5BH.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-ExtraBold-C6GRMYVT.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-Light-WKN65Y2C.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-Medium-ZC4DWL7C.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-Regular-DT6EKZ3S.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-Thin-YWDNVG6M.ttf +0 -0
- package/testeranto/bundles/web/core/chunk-BADF3AZF.mjs +0 -108
- package/testeranto/bundles/web/core/chunk-BXV27S2S.mjs +0 -6252
- package/testeranto/bundles/web/core/chunk-EIYZKF2C.mjs +0 -223
- package/testeranto/bundles/web/core/chunk-FNXFUNA7.mjs +0 -28528
- package/testeranto/bundles/web/core/chunk-LU364HVS.mjs +0 -3311
- package/testeranto/bundles/web/core/chunk-QWII7WIM.mjs +0 -2281
- package/testeranto/bundles/web/core/chunk-VAYOSMXI.mjs +0 -21775
- package/testeranto/bundles/web/core/metafile.json +0 -18227
- package/testeranto/bundles/web/core/src/components/pure/AppFrame.test/index.css +0 -12105
- package/testeranto/bundles/web/core/src/components/pure/AppFrame.test/index.html +0 -15
- package/testeranto/bundles/web/core/src/components/pure/AppFrame.test/index.mjs +0 -517
- package/testeranto/bundles/web/core/src/components/pure/FeaturesReporterView.test/index.mjs +0 -166
- package/testeranto/bundles/web/core/src/components/pure/ModalContent.test/index.css +0 -12105
- package/testeranto/bundles/web/core/src/components/pure/ModalContent.test/index.html +0 -15
- package/testeranto/bundles/web/core/src/components/pure/ModalContent.test/index.mjs +0 -93
- package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.css +0 -12105
- package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.mjs +0 -343
- package/testeranto/bundles/web/core/src/components/pure/TestPageView.test/index.css +0 -12105
- package/testeranto/bundles/web/core/src/components/pure/TestPageView.test/index.mjs +0 -483
- package/testeranto/bundles/web/core/src/lib/BaseSuite.test/web.test.mjs +0 -394
- package/testeranto/bundles/web/core/src/lib/baseBuilder.test/baseBuilder.test.web.mjs +0 -256
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/debug.log +0 -0
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/error.log +0 -22
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/exit.log +0 -1
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/info.log +0 -4
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/lint_errors.txt +0 -2
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/message.txt +0 -17
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/prompt.txt +0 -18
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/tests.json +0 -57
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/type_errors.txt +0 -55
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/warn.log +0 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/message.txt +0 -17
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/prompt.txt +0 -16
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/suite-0/given-basicRender/then-4/butThen/features-reporter.png +0 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/tests.json +0 -76
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/type_errors.txt +0 -80
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/debug.log +0 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/error.log +0 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/exit.log +0 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/info.log +0 -4
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/message.txt +0 -17
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/prompt.txt +0 -15
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/suite-0/given-basicRender/then-2/butThen/modal-content.png +0 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/tests.json +0 -42
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/type_errors.txt +0 -65
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/warn.log +0 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/lint_errors.txt +0 -2
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/message.txt +0 -17
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/prompt.txt +0 -16
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/suite-0/given-basicRender/then-6/butThen/happy-state.png +0 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/suite-0/given-errorHandling/then-1/butThen/error-state.png +0 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/tests.json +0 -99
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/type_errors.txt +0 -91
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/message.txt +0 -17
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/prompt.txt +0 -18
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/tests.json +0 -69
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/type_errors.txt +0 -111
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/message.txt +0 -17
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/prompt.txt +0 -15
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/tests.json +0 -31
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/type_errors.txt +0 -113
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/message.txt +0 -17
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/prompt.txt +0 -17
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/suite-0/given-testInitialization/then-0/butThen/hello.txt +0 -1
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/suite-0/given-testInitialization/then-1/butThen/artifact_test.txt +0 -1
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/tests.json +0 -71
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/type_errors.txt +0 -65
- package/testeranto/reports/core/src/mothership/test/node/exit.log +0 -1
- package/testeranto/reports/core/src/mothership/test/node/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/mothership/test/node/message.txt +0 -17
- package/testeranto/reports/core/src/mothership/test/node/prompt.txt +0 -14
- package/testeranto/reports/core/src/mothership/test/node/stderr.log +0 -27
- package/testeranto/reports/core/src/mothership/test/node/stdout.log +0 -8
- package/testeranto/reports/core/src/mothership/test/node/tests.json +0 -36
- package/testeranto/reports/core/src/mothership/test/node/type_errors.txt +0 -38
- package/videos/download-smil-xsd.sh +0 -29
- package/videos/project0/index.md +0 -72
- package/videos/project0/narration.json +0 -7
- package/videos/project0/narration.ssml +0 -58
- package/videos/project0/package.json +0 -21
- package/videos/project0/presentation.smil +0 -25
- package/videos/project0/smil30/SMIL-anim.mod.xsd +0 -163
- package/videos/project0/smil30/SMIL-anim.mod.xsd.1 +0 -163
- package/videos/project0/smil30/SMIL-anim.mod.xsd.2 +0 -163
- package/videos/project0/smil30/SMIL-control.mod.xsd +0 -73
- package/videos/project0/smil30/SMIL-control.mod.xsd.1 +0 -73
- package/videos/project0/smil30/SMIL-control.mod.xsd.2 +0 -73
- package/videos/project0/smil30/SMIL-layout.mod.xsd +0 -149
- package/videos/project0/smil30/SMIL-layout.mod.xsd.1 +0 -149
- package/videos/project0/smil30/SMIL-layout.mod.xsd.2 +0 -149
- package/videos/project0/smil30/SMIL-link.mod.xsd +0 -145
- package/videos/project0/smil30/SMIL-link.mod.xsd.1 +0 -145
- package/videos/project0/smil30/SMIL-link.mod.xsd.2 +0 -145
- package/videos/project0/smil30/SMIL-media.mod.xsd +0 -1646
- package/videos/project0/smil30/SMIL-media.mod.xsd.1 +0 -1646
- package/videos/project0/smil30/SMIL-media.mod.xsd.2 +0 -1646
- package/videos/project0/smil30/SMIL-metainformation.mod.xsd +0 -45
- package/videos/project0/smil30/SMIL-metainformation.mod.xsd.1 +0 -45
- package/videos/project0/smil30/SMIL-metainformation.mod.xsd.2 +0 -45
- package/videos/project0/smil30/SMIL-smiltext.mod.xsd +0 -353
- package/videos/project0/smil30/SMIL-smiltext.mod.xsd.1 +0 -353
- package/videos/project0/smil30/SMIL-smiltext.mod.xsd.2 +0 -353
- package/videos/project0/smil30/SMIL-state.mod.xsd +0 -133
- package/videos/project0/smil30/SMIL-state.mod.xsd.1 +0 -133
- package/videos/project0/smil30/SMIL-state.mod.xsd.2 +0 -133
- package/videos/project0/smil30/SMIL-struct.mod.xsd +0 -70
- package/videos/project0/smil30/SMIL-struct.mod.xsd.1 +0 -70
- package/videos/project0/smil30/SMIL-struct.mod.xsd.2 +0 -70
- package/videos/project0/smil30/SMIL-timing.mod.xsd +0 -105
- package/videos/project0/smil30/SMIL-timing.mod.xsd.1 +0 -105
- package/videos/project0/smil30/SMIL-timing.mod.xsd.2 +0 -105
- package/videos/project0/smil30/SMIL-transition.mod.xsd +0 -229
- package/videos/project0/smil30/SMIL-transition.mod.xsd.1 +0 -229
- package/videos/project0/smil30/SMIL-transition.mod.xsd.2 +0 -229
- package/videos/project0/smil30/SMIL.xsd +0 -63
- package/videos/project0/smil30/SMIL.xsd.1 +0 -63
- package/videos/project0/smil30/SMIL.xsd.2 +0 -63
- package/videos/project0/smil30/its.xsd +0 -42
- package/videos/project0/smil30/its.xsd.1 +0 -42
- package/videos/project0/smil30/its.xsd.2 +0 -42
- package/videos/project0/smil30/smil-attribs-1.mod.xsd +0 -610
- package/videos/project0/smil30/smil-attribs-1.mod.xsd.1 +0 -610
- package/videos/project0/smil30/smil-attribs-1.mod.xsd.2 +0 -610
- package/videos/project0/smil30/smil-datatypes-1.mod.xsd +0 -72
- package/videos/project0/smil30/smil-datatypes-1.mod.xsd.1 +0 -72
- package/videos/project0/smil30/smil-datatypes-1.mod.xsd.2 +0 -72
- package/videos/project0/smil30/smil-framework-1.mod.xsd +0 -45
- package/videos/project0/smil30/smil-framework-1.mod.xsd.1 +0 -45
- package/videos/project0/smil30/smil-framework-1.mod.xsd.2 +0 -45
- package/videos/project0/smil30/smil-profile-model-1.mod.xsd +0 -1331
- package/videos/project0/smil30/smil-profile-model-1.mod.xsd.1 +0 -1331
- package/videos/project0/smil30/smil-qname-1.mod.xsd +0 -121
- package/videos/project0/smil30/smil-qname-1.mod.xsd.1 +0 -121
- package/videos/project0/smil30/xml.xsd +0 -16
- package/videos/project0/smil30/xml.xsd.1 +0 -16
- package/videos/project0/smil30/xml.xsd.2 +0 -16
- package/videos/project0/smil30.xsd +0 -137
- package/videos/project0/src/audio/metadata.json +0 -5
- package/videos/project0/src/audio/narration.mp3 +0 -0
- package/videos/project0/src/motion-canvas.d.ts +0 -1
- package/videos/project0/src/project.meta +0 -31
- package/videos/project0/src/project.ts +0 -13
- package/videos/project0/src/scenes/example.meta +0 -5
- package/videos/project0/src/scenes/scene1.meta +0 -3
- package/videos/project0/src/scenes/scene1.tsx +0 -129
- package/videos/project0/src/scenes/scene2.tsx +0 -132
- package/videos/project0/src/scenes/scene3.meta +0 -26
- package/videos/project0/src/scenes/scene3.tsx +0 -188
- package/videos/project0/tsconfig.json +0 -4
- package/videos/project0/vite.config.ts +0 -10
- package/videos/trash/output/project.mp4 +0 -0
- package/videos/trash/text.mp4 +0 -0
- package/videos/trash/video/project.tsx +0 -549
- package/videos/trash/video/render.ts +0 -15
- package/videos/trash/vite.config.ts +0 -10
- package/videos/tts.js +0 -109
- /package/dist/{types/ReportServer.d.ts → module/design-editor/types.js} +0 -0
- /package/dist/types/{App.d.ts → src/App.d.ts} +0 -0
- /package/dist/types/{CoreTypes.d.ts → src/CoreTypes.d.ts} +0 -0
- /package/dist/types/{Init.d.ts → src/Init.d.ts} +0 -0
- /package/dist/types/{Node.d.ts → src/Node.d.ts} +0 -0
- /package/dist/types/{NodeSidecar.d.ts → src/NodeSidecar.d.ts} +0 -0
- /package/dist/types/{PM → src/PM}/PM_WithEslintAndTsc.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/__tests__/nodeSidecar.testeranto.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/__tests__/pureSidecar.testeranto.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/__tests__/webSidecar.testeranto.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/base.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/node.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/nodeSidecar.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/pureSidecar.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/sidecar.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/types.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/web.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/webSidecar.d.ts +0 -0
- /package/dist/types/{Pure.d.ts → src/Pure.d.ts} +0 -0
- /package/dist/types/{PureSidecar.d.ts → src/PureSidecar.d.ts} +0 -0
- /package/dist/types/{build.d.ts → src/ReportServer.d.ts} +0 -0
- /package/dist/types/{ReportServer.test.ts → src/ReportServer.test.ts}/index.d.ts +0 -0
- /package/dist/types/{ReportServerLib.d.ts → src/ReportServerLib.d.ts} +0 -0
- /package/dist/types/{Types.d.ts → src/Types.d.ts} +0 -0
- /package/dist/types/{Web.d.ts → src/Web.d.ts} +0 -0
- /package/dist/types/{WebSidecar.d.ts → src/WebSidecar.d.ts} +0 -0
- /package/dist/types/{init-docs.d.ts → src/build.d.ts} +0 -0
- /package/dist/types/{components → src/components}/SunriseAnimation.d.ts +0 -0
- /package/dist/types/{components → src/components}/SunriseAnimation.test/implementation.d.ts +0 -0
- /package/dist/types/{components → src/components}/SunriseAnimation.test/index.d.ts +0 -0
- /package/dist/types/{components → src/components}/SunriseAnimation.test/interface.d.ts +0 -0
- /package/dist/types/{components → src/components}/SunriseAnimation.test/specification.d.ts +0 -0
- /package/dist/types/{components → src/components}/SunriseAnimation.test/types.d.ts +0 -0
- /package/dist/types/{components → src/components}/TestStatusBadge.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/AppFrame.test/implementation.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/AppFrame.test/index.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/AppFrame.test/specification.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/AppFrame.test/types.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/FeaturesReporterView.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/FeaturesReporterView.test/implementation.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/FeaturesReporterView.test/index.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/FeaturesReporterView.test/specification.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/FeaturesReporterView.test/types.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/ModalContent.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/ModalContent.test/implementation.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/ModalContent.test/specification.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/ModalContent.test/types.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/ProjectPageView.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/ProjectPageView.test/implementation.d.ts +0 -0
- /package/dist/types/{components/pure/ModalContent.test → src/components/pure/ProjectPageView.test}/index.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/ProjectPageView.test/specification.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/ProjectPageView.test/types.d.ts +0 -0
- /package/dist/types/{PM/layers/base/PM_Base.d.ts → src/components/pure/SingleProcessView.d.ts} +0 -0
- /package/dist/types/{components → src/components}/pure/TestPageView.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/TestPageView.test/specification.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/TestPageView.test/types.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/ThemeCard.d.ts +0 -0
- /package/dist/types/{components → src/components}/stateful/FeaturesReporter.d.ts +0 -0
- /package/dist/types/{components → src/components}/stateful/ProjectPage.d.ts +0 -0
- /package/dist/types/{components → src/components}/stateful/ProjectsPage.d.ts +0 -0
- /package/dist/types/{components → src/components}/stateful/TestPage.d.ts +0 -0
- /package/dist/types/{defaultConfig.d.ts → src/defaultConfig.d.ts} +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/consoleDetectorPlugin.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/eslint-formatter-testeranto.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/featuresPlugin.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/index.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/inputFilesPlugin.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/nativeImportDetectorPlugin.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/node.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/pure.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/rebuildPlugin.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/web.d.ts +0 -0
- /package/dist/types/{run.d.ts → src/init-docs.d.ts} +0 -0
- /package/dist/types/{lib → src/lib}/BaseSuite.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/BaseSuite.test/node.test.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/BaseSuite.test/pure.test.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/BaseSuite.test/test.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/BaseSuite.test/web.test.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/Sidecar.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/abstractBase.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/abstractBase.test/MockGiven.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/abstractBase.test/MockThen.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/abstractBase.test/MockWhen.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/abstractBase.test/adapter.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/abstractBase.test/implementation.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/abstractBase.test/index.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/abstractBase.test/specification.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/abstractBase.test/types.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/baseBuilder.test/baseBuilder.test.adapter.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/baseBuilder.test/baseBuilder.test.implementation.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/baseBuilder.test/baseBuilder.test.mock.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/baseBuilder.test/baseBuilder.test.node.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/baseBuilder.test/baseBuilder.test.pure.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/baseBuilder.test/baseBuilder.test.specification.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/baseBuilder.test/baseBuilder.test.types.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/baseBuilder.test/baseBuilder.test.web.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/classBuilder.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/classBuilder.test/classBuilder.test.adapter.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/classBuilder.test/classBuilder.test.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/classBuilder.test/classBuilder.test.implementation.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/classBuilder.test/classBuilder.test.specification.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/classBuilder.test/classBuilder.test.types.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/classBuilder.test/mock.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/core.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/core.test/MockCore.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/core.test/core.test.adapter.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/core.test/core.test.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/core.test/core.test.implementation.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/core.test/core.test.specification.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/core.test/core.test.types.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/mocks.test.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/pmProxy.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/pmProxy.test/adapter.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/pmProxy.test/implementation.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/pmProxy.test/index.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/pmProxy.test/mockPM.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/pmProxy.test/specification.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/pmProxy.test/types.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/types.d.ts +0 -0
- /package/dist/types/{mothership → src/mothership}/index.d.ts +0 -0
- /package/dist/types/{mothership → src/mothership}/test.d.ts +0 -0
- /package/dist/types/{types → src/types}/features.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/api.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/buildTemplates.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/featureUtils.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/makePrompt.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/queue.d.ts +0 -0
- /package/dist/types/{utils.d.ts → src/utils.d.ts} +0 -0
- /package/dist/types/{web.html.d.ts → src/web.html.d.ts} +0 -0
|
@@ -1,21 +1,14 @@
|
|
|
1
1
|
import { createRequire } from 'module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
Node_default
|
|
4
|
-
} from "../../../chunk-
|
|
4
|
+
} from "../../../chunk-4JTDLQVA.mjs";
|
|
5
5
|
import {
|
|
6
|
+
__export,
|
|
6
7
|
andWhenProxy,
|
|
7
|
-
butThenProxy
|
|
8
|
-
|
|
9
|
-
} from "../../../chunk-L67RWZ4W.mjs";
|
|
10
|
-
|
|
11
|
-
// src/lib/pmProxy.test/index.ts
|
|
12
|
-
init_cjs_shim();
|
|
13
|
-
|
|
14
|
-
// src/lib/pmProxy.test/implementation.ts
|
|
15
|
-
init_cjs_shim();
|
|
8
|
+
butThenProxy
|
|
9
|
+
} from "../../../chunk-4CSH4UJE.mjs";
|
|
16
10
|
|
|
17
11
|
// src/lib/pmProxy.test/mockPMBase.ts
|
|
18
|
-
init_cjs_shim();
|
|
19
12
|
var MockPMBase = class {
|
|
20
13
|
constructor(configs) {
|
|
21
14
|
this.calls = {};
|
|
@@ -143,30 +136,6 @@ var MockPMBase = class {
|
|
|
143
136
|
};
|
|
144
137
|
|
|
145
138
|
// src/lib/pmProxy.test/implementation.ts
|
|
146
|
-
function createPathRewriter(basePath) {
|
|
147
|
-
return (path) => {
|
|
148
|
-
if (!path)
|
|
149
|
-
return path;
|
|
150
|
-
const normalizedPath = path.replace(/\\/g, "/");
|
|
151
|
-
const normalizedBase = basePath.replace(/\\/g, "/");
|
|
152
|
-
if (normalizedPath.startsWith("/")) {
|
|
153
|
-
return `${normalizedBase}${normalizedPath}`;
|
|
154
|
-
}
|
|
155
|
-
if (normalizedPath.includes("../")) {
|
|
156
|
-
const parts = normalizedPath.split("/");
|
|
157
|
-
const baseParts = normalizedBase.split("/");
|
|
158
|
-
for (const part of parts) {
|
|
159
|
-
if (part === "..") {
|
|
160
|
-
baseParts.pop();
|
|
161
|
-
} else if (part !== ".") {
|
|
162
|
-
baseParts.push(part);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
return baseParts.join("/");
|
|
166
|
-
}
|
|
167
|
-
return `${normalizedBase}/${normalizedPath}`;
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
139
|
var implementation = {
|
|
171
140
|
suites: {
|
|
172
141
|
Default: "PM Proxy Tests"
|
|
@@ -178,54 +147,63 @@ var implementation = {
|
|
|
178
147
|
// functions have no mutations
|
|
179
148
|
},
|
|
180
149
|
thens: {
|
|
181
|
-
theButTheProxyReturns: (method, expectedPath) => (store) => {
|
|
150
|
+
theButTheProxyReturns: (method, expectedPath) => async (store) => {
|
|
182
151
|
const mockPm = new MockPMBase();
|
|
183
152
|
const filepath = "test/path";
|
|
184
|
-
const rewritePath = createPathRewriter(`${filepath}/butThen`);
|
|
185
153
|
let actualPath;
|
|
186
|
-
|
|
154
|
+
const originalWriteFileSync = mockPm.writeFileSync;
|
|
155
|
+
mockPm.writeFileSync = async (path, content, testName) => {
|
|
156
|
+
actualPath = path;
|
|
157
|
+
return originalWriteFileSync.call(mockPm, path, content, testName);
|
|
158
|
+
};
|
|
159
|
+
const originalCreateWriteStream = mockPm.createWriteStream;
|
|
160
|
+
mockPm.createWriteStream = async (path, testName) => {
|
|
161
|
+
actualPath = path;
|
|
162
|
+
return originalCreateWriteStream.call(mockPm, path, testName);
|
|
163
|
+
};
|
|
164
|
+
const originalScreencast = mockPm.screencast;
|
|
165
|
+
mockPm.screencast = async (opts, testName, page) => {
|
|
166
|
+
actualPath = opts.path;
|
|
167
|
+
return originalScreencast.call(mockPm, opts, testName, page);
|
|
168
|
+
};
|
|
169
|
+
const originalCustomScreenShot = mockPm.customScreenShot;
|
|
170
|
+
mockPm.customScreenShot = async (opts, testName, pageUid) => {
|
|
171
|
+
actualPath = opts.path;
|
|
172
|
+
return originalCustomScreenShot.call(mockPm, opts, testName, pageUid);
|
|
173
|
+
};
|
|
187
174
|
try {
|
|
188
175
|
switch (method) {
|
|
189
176
|
case "writeFileSync":
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
177
|
+
await butThenProxy(mockPm, filepath, {}).writeFileSync(
|
|
178
|
+
"test.txt",
|
|
179
|
+
"content",
|
|
180
|
+
"test"
|
|
194
181
|
);
|
|
195
|
-
actualPath = mockPm.getLastCall("writeFileSync")?.path;
|
|
196
|
-
actualContent = mockPm.getLastCall("writeFileSync")?.content;
|
|
197
182
|
break;
|
|
198
183
|
case "createWriteStream":
|
|
199
|
-
butThenProxy(mockPm, filepath, {}).createWriteStream(
|
|
200
|
-
|
|
184
|
+
await butThenProxy(mockPm, filepath, {}).createWriteStream(
|
|
185
|
+
"stream.txt",
|
|
186
|
+
"test"
|
|
201
187
|
);
|
|
202
|
-
actualPath = mockPm.getLastCall("createWriteStream")?.path;
|
|
203
188
|
break;
|
|
204
189
|
case "screencast":
|
|
205
|
-
butThenProxy(mockPm, filepath, {}).screencast(
|
|
206
|
-
{
|
|
207
|
-
path: "screen.png",
|
|
208
|
-
quality: 80,
|
|
209
|
-
fullPage: true
|
|
210
|
-
},
|
|
190
|
+
await butThenProxy(mockPm, filepath, {}).screencast(
|
|
191
|
+
{ path: "screen.png" },
|
|
211
192
|
"test"
|
|
212
193
|
);
|
|
213
|
-
actualPath = mockPm.getLastCall("screencast")?.opts?.path;
|
|
214
|
-
actualContent = mockPm.getLastCall("screencast")?.opts;
|
|
215
194
|
break;
|
|
216
195
|
case "customScreenShot":
|
|
217
|
-
butThenProxy(mockPm, filepath, {}).customScreenShot(
|
|
218
|
-
|
|
196
|
+
await butThenProxy(mockPm, filepath, {}).customScreenShot(
|
|
197
|
+
{ path: "shot.png" },
|
|
198
|
+
"test"
|
|
199
|
+
);
|
|
219
200
|
break;
|
|
220
201
|
default:
|
|
221
202
|
throw new Error(`Unknown method: ${method}`);
|
|
222
203
|
}
|
|
223
|
-
|
|
224
|
-
return [void 0, void 0];
|
|
225
|
-
}
|
|
226
|
-
return [actualPath, expectedPath, actualContent];
|
|
204
|
+
return actualPath;
|
|
227
205
|
} catch (error) {
|
|
228
|
-
|
|
206
|
+
throw error;
|
|
229
207
|
}
|
|
230
208
|
},
|
|
231
209
|
verifyContent: (expectedContent) => (result) => {
|
|
@@ -238,12 +216,32 @@ var implementation = {
|
|
|
238
216
|
);
|
|
239
217
|
}
|
|
240
218
|
return result;
|
|
219
|
+
},
|
|
220
|
+
// Test to verify tests.json is written correctly
|
|
221
|
+
verifyTestsJsonWrite: () => async (store) => {
|
|
222
|
+
const mockPm = new MockPMBase();
|
|
223
|
+
let actualArgs;
|
|
224
|
+
const originalWriteFileSync = mockPm.writeFileSync;
|
|
225
|
+
mockPm.writeFileSync = async (...args) => {
|
|
226
|
+
actualArgs = args;
|
|
227
|
+
if (args[0] && typeof args[0] === "string") {
|
|
228
|
+
console.log(
|
|
229
|
+
`[TESTS.JSON DEBUG] First argument length: ${args[0].length}, value: "${args[0]}"`
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
return originalWriteFileSync.apply(mockPm, args);
|
|
233
|
+
};
|
|
234
|
+
const testData = { test: "data" };
|
|
235
|
+
if (actualArgs && actualArgs[0] === "test/path/butThen/tests.json" && actualArgs[1] === JSON.stringify(testData, null, 2) && actualArgs[2] === "test") {
|
|
236
|
+
return "PASS";
|
|
237
|
+
} else {
|
|
238
|
+
return `FAIL: args=${JSON.stringify(actualArgs)}`;
|
|
239
|
+
}
|
|
241
240
|
}
|
|
242
241
|
}
|
|
243
242
|
};
|
|
244
243
|
|
|
245
244
|
// src/lib/pmProxy.test/specification.ts
|
|
246
|
-
init_cjs_shim();
|
|
247
245
|
var specification = (Suite, Given, When, Then) => [
|
|
248
246
|
Suite.Default("PM Proxy Functionality", {
|
|
249
247
|
// Basic path rewriting tests
|
|
@@ -319,6 +317,17 @@ var specification = (Suite, Given, When, Then) => [
|
|
|
319
317
|
)
|
|
320
318
|
],
|
|
321
319
|
"special chars test"
|
|
320
|
+
),
|
|
321
|
+
testsJsonTest: Given.SomeBaseString(
|
|
322
|
+
["butThenProxy should handle tests.json correctly"],
|
|
323
|
+
[],
|
|
324
|
+
[
|
|
325
|
+
Then.theButTheProxyReturns(
|
|
326
|
+
"writeFileSync",
|
|
327
|
+
"test/path/butThen/tests.json"
|
|
328
|
+
)
|
|
329
|
+
],
|
|
330
|
+
"tests.json test"
|
|
322
331
|
)
|
|
323
332
|
}),
|
|
324
333
|
Suite.Default("Proxy Type Coverage", {
|
|
@@ -416,25 +425,7 @@ var specification = (Suite, Given, When, Then) => [
|
|
|
416
425
|
})
|
|
417
426
|
];
|
|
418
427
|
|
|
419
|
-
//
|
|
420
|
-
init_cjs_shim();
|
|
421
|
-
|
|
422
|
-
// node_modules/chai/chai.js
|
|
423
|
-
init_cjs_shim();
|
|
424
|
-
var __defProp = Object.defineProperty;
|
|
425
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
426
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
427
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
428
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
429
|
-
};
|
|
430
|
-
var __export = (target, all) => {
|
|
431
|
-
for (var name in all)
|
|
432
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
433
|
-
};
|
|
434
|
-
var require_util = __commonJS({
|
|
435
|
-
"(disabled):util"() {
|
|
436
|
-
}
|
|
437
|
-
});
|
|
428
|
+
// node_modules/chai/lib/chai/utils/index.js
|
|
438
429
|
var utils_exports = {};
|
|
439
430
|
__export(utils_exports, {
|
|
440
431
|
addChainableMethod: () => addChainableMethod,
|
|
@@ -468,6 +459,8 @@ __export(utils_exports, {
|
|
|
468
459
|
transferFlags: () => transferFlags,
|
|
469
460
|
type: () => type
|
|
470
461
|
});
|
|
462
|
+
|
|
463
|
+
// node_modules/check-error/index.js
|
|
471
464
|
var check_error_exports = {};
|
|
472
465
|
__export(check_error_exports, {
|
|
473
466
|
compatibleConstructor: () => compatibleConstructor,
|
|
@@ -479,15 +472,12 @@ __export(check_error_exports, {
|
|
|
479
472
|
function isErrorInstance(obj) {
|
|
480
473
|
return obj instanceof Error || Object.prototype.toString.call(obj) === "[object Error]";
|
|
481
474
|
}
|
|
482
|
-
__name(isErrorInstance, "isErrorInstance");
|
|
483
475
|
function isRegExp(obj) {
|
|
484
476
|
return Object.prototype.toString.call(obj) === "[object RegExp]";
|
|
485
477
|
}
|
|
486
|
-
__name(isRegExp, "isRegExp");
|
|
487
478
|
function compatibleInstance(thrown, errorLike) {
|
|
488
479
|
return isErrorInstance(errorLike) && thrown === errorLike;
|
|
489
480
|
}
|
|
490
|
-
__name(compatibleInstance, "compatibleInstance");
|
|
491
481
|
function compatibleConstructor(thrown, errorLike) {
|
|
492
482
|
if (isErrorInstance(errorLike)) {
|
|
493
483
|
return thrown.constructor === errorLike.constructor || thrown instanceof errorLike.constructor;
|
|
@@ -496,7 +486,6 @@ function compatibleConstructor(thrown, errorLike) {
|
|
|
496
486
|
}
|
|
497
487
|
return false;
|
|
498
488
|
}
|
|
499
|
-
__name(compatibleConstructor, "compatibleConstructor");
|
|
500
489
|
function compatibleMessage(thrown, errMatcher) {
|
|
501
490
|
const comparisonString = typeof thrown === "string" ? thrown : thrown.message;
|
|
502
491
|
if (isRegExp(errMatcher)) {
|
|
@@ -506,7 +495,6 @@ function compatibleMessage(thrown, errMatcher) {
|
|
|
506
495
|
}
|
|
507
496
|
return false;
|
|
508
497
|
}
|
|
509
|
-
__name(compatibleMessage, "compatibleMessage");
|
|
510
498
|
function getConstructorName(errorLike) {
|
|
511
499
|
let constructorName = errorLike;
|
|
512
500
|
if (isErrorInstance(errorLike)) {
|
|
@@ -520,7 +508,6 @@ function getConstructorName(errorLike) {
|
|
|
520
508
|
}
|
|
521
509
|
return constructorName;
|
|
522
510
|
}
|
|
523
|
-
__name(getConstructorName, "getConstructorName");
|
|
524
511
|
function getMessage(errorLike) {
|
|
525
512
|
let msg = "";
|
|
526
513
|
if (errorLike && errorLike.message) {
|
|
@@ -530,7 +517,8 @@ function getMessage(errorLike) {
|
|
|
530
517
|
}
|
|
531
518
|
return msg;
|
|
532
519
|
}
|
|
533
|
-
|
|
520
|
+
|
|
521
|
+
// node_modules/chai/lib/chai/utils/flag.js
|
|
534
522
|
function flag(obj, key, value) {
|
|
535
523
|
let flags = obj.__flags || (obj.__flags = /* @__PURE__ */ Object.create(null));
|
|
536
524
|
if (arguments.length === 3) {
|
|
@@ -539,12 +527,14 @@ function flag(obj, key, value) {
|
|
|
539
527
|
return flags[key];
|
|
540
528
|
}
|
|
541
529
|
}
|
|
542
|
-
|
|
530
|
+
|
|
531
|
+
// node_modules/chai/lib/chai/utils/test.js
|
|
543
532
|
function test(obj, args) {
|
|
544
533
|
let negate = flag(obj, "negate"), expr = args[0];
|
|
545
534
|
return negate ? !expr : expr;
|
|
546
535
|
}
|
|
547
|
-
|
|
536
|
+
|
|
537
|
+
// node_modules/chai/lib/chai/utils/type-detect.js
|
|
548
538
|
function type(obj) {
|
|
549
539
|
if (typeof obj === "undefined") {
|
|
550
540
|
return "undefined";
|
|
@@ -559,12 +549,10 @@ function type(obj) {
|
|
|
559
549
|
const type3 = Object.prototype.toString.call(obj).slice(8, -1);
|
|
560
550
|
return type3;
|
|
561
551
|
}
|
|
562
|
-
|
|
552
|
+
|
|
553
|
+
// node_modules/assertion-error/index.js
|
|
563
554
|
var canElideFrames = "captureStackTrace" in Error;
|
|
564
|
-
var AssertionError = class
|
|
565
|
-
static {
|
|
566
|
-
__name(this, "AssertionError");
|
|
567
|
-
}
|
|
555
|
+
var AssertionError = class extends Error {
|
|
568
556
|
message;
|
|
569
557
|
get name() {
|
|
570
558
|
return "AssertionError";
|
|
@@ -576,7 +564,7 @@ var AssertionError = class _AssertionError extends Error {
|
|
|
576
564
|
super(message);
|
|
577
565
|
this.message = message;
|
|
578
566
|
if (canElideFrames) {
|
|
579
|
-
Error.captureStackTrace(this, ssf ||
|
|
567
|
+
Error.captureStackTrace(this, ssf || AssertionError);
|
|
580
568
|
}
|
|
581
569
|
for (const key in props) {
|
|
582
570
|
if (!(key in this)) {
|
|
@@ -594,6 +582,8 @@ var AssertionError = class _AssertionError extends Error {
|
|
|
594
582
|
};
|
|
595
583
|
}
|
|
596
584
|
};
|
|
585
|
+
|
|
586
|
+
// node_modules/chai/lib/chai/utils/expectTypes.js
|
|
597
587
|
function expectTypes(obj, types) {
|
|
598
588
|
let flagMsg = flag(obj, "message");
|
|
599
589
|
let ssfi = flag(obj, "ssfi");
|
|
@@ -619,11 +609,13 @@ function expectTypes(obj, types) {
|
|
|
619
609
|
);
|
|
620
610
|
}
|
|
621
611
|
}
|
|
622
|
-
|
|
612
|
+
|
|
613
|
+
// node_modules/chai/lib/chai/utils/getActual.js
|
|
623
614
|
function getActual(obj, args) {
|
|
624
615
|
return args.length > 4 ? args[4] : obj._obj;
|
|
625
616
|
}
|
|
626
|
-
|
|
617
|
+
|
|
618
|
+
// node_modules/loupe/lib/helpers.js
|
|
627
619
|
var ansiColors = {
|
|
628
620
|
bold: ["1", "22"],
|
|
629
621
|
dim: ["2", "22"],
|
|
@@ -673,7 +665,6 @@ function colorise(value, styleType) {
|
|
|
673
665
|
}
|
|
674
666
|
return `\x1B[${color[0]}m${String(value)}\x1B[${color[1]}m`;
|
|
675
667
|
}
|
|
676
|
-
__name(colorise, "colorise");
|
|
677
668
|
function normaliseOptions({
|
|
678
669
|
showHidden = false,
|
|
679
670
|
depth = 2,
|
|
@@ -705,11 +696,9 @@ function normaliseOptions({
|
|
|
705
696
|
}
|
|
706
697
|
return options;
|
|
707
698
|
}
|
|
708
|
-
__name(normaliseOptions, "normaliseOptions");
|
|
709
699
|
function isHighSurrogate(char) {
|
|
710
700
|
return char >= "\uD800" && char <= "\uDBFF";
|
|
711
701
|
}
|
|
712
|
-
__name(isHighSurrogate, "isHighSurrogate");
|
|
713
702
|
function truncate(string, length, tail = truncator) {
|
|
714
703
|
string = String(string);
|
|
715
704
|
const tailLength = tail.length;
|
|
@@ -726,7 +715,6 @@ function truncate(string, length, tail = truncator) {
|
|
|
726
715
|
}
|
|
727
716
|
return string;
|
|
728
717
|
}
|
|
729
|
-
__name(truncate, "truncate");
|
|
730
718
|
function inspectList(list, options, inspectItem, separator = ", ") {
|
|
731
719
|
inspectItem = inspectItem || options.inspect;
|
|
732
720
|
const size = list.length;
|
|
@@ -764,14 +752,12 @@ function inspectList(list, options, inspectItem, separator = ", ") {
|
|
|
764
752
|
}
|
|
765
753
|
return `${output}${truncated}`;
|
|
766
754
|
}
|
|
767
|
-
__name(inspectList, "inspectList");
|
|
768
755
|
function quoteComplexKey(key) {
|
|
769
756
|
if (key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)) {
|
|
770
757
|
return key;
|
|
771
758
|
}
|
|
772
759
|
return JSON.stringify(key).replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
|
|
773
760
|
}
|
|
774
|
-
__name(quoteComplexKey, "quoteComplexKey");
|
|
775
761
|
function inspectProperty([key, value], options) {
|
|
776
762
|
options.truncate -= 2;
|
|
777
763
|
if (typeof key === "string") {
|
|
@@ -783,7 +769,8 @@ function inspectProperty([key, value], options) {
|
|
|
783
769
|
value = options.inspect(value, options);
|
|
784
770
|
return `${key}: ${value}`;
|
|
785
771
|
}
|
|
786
|
-
|
|
772
|
+
|
|
773
|
+
// node_modules/loupe/lib/array.js
|
|
787
774
|
function inspectArray(array, options) {
|
|
788
775
|
const nonIndexProperties = Object.keys(array).slice(array.length);
|
|
789
776
|
if (!array.length && !nonIndexProperties.length)
|
|
@@ -797,8 +784,9 @@ function inspectArray(array, options) {
|
|
|
797
784
|
}
|
|
798
785
|
return `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ""} ]`;
|
|
799
786
|
}
|
|
800
|
-
|
|
801
|
-
|
|
787
|
+
|
|
788
|
+
// node_modules/loupe/lib/typedarray.js
|
|
789
|
+
var getArrayName = (array) => {
|
|
802
790
|
if (typeof Buffer === "function" && array instanceof Buffer) {
|
|
803
791
|
return "Buffer";
|
|
804
792
|
}
|
|
@@ -806,7 +794,7 @@ var getArrayName = /* @__PURE__ */ __name((array) => {
|
|
|
806
794
|
return array[Symbol.toStringTag];
|
|
807
795
|
}
|
|
808
796
|
return array.constructor.name;
|
|
809
|
-
}
|
|
797
|
+
};
|
|
810
798
|
function inspectTypedArray(array, options) {
|
|
811
799
|
const name = getArrayName(array);
|
|
812
800
|
options.truncate -= name.length + 4;
|
|
@@ -829,7 +817,8 @@ function inspectTypedArray(array, options) {
|
|
|
829
817
|
}
|
|
830
818
|
return `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ""} ]`;
|
|
831
819
|
}
|
|
832
|
-
|
|
820
|
+
|
|
821
|
+
// node_modules/loupe/lib/date.js
|
|
833
822
|
function inspectDate(dateObject, options) {
|
|
834
823
|
const stringRepresentation = dateObject.toJSON();
|
|
835
824
|
if (stringRepresentation === null) {
|
|
@@ -839,7 +828,8 @@ function inspectDate(dateObject, options) {
|
|
|
839
828
|
const date = split[0];
|
|
840
829
|
return options.stylize(`${date}T${truncate(split[1], options.truncate - date.length - 1)}`, "date");
|
|
841
830
|
}
|
|
842
|
-
|
|
831
|
+
|
|
832
|
+
// node_modules/loupe/lib/function.js
|
|
843
833
|
function inspectFunction(func, options) {
|
|
844
834
|
const functionType = func[Symbol.toStringTag] || "Function";
|
|
845
835
|
const name = func.name;
|
|
@@ -848,7 +838,8 @@ function inspectFunction(func, options) {
|
|
|
848
838
|
}
|
|
849
839
|
return options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, "special");
|
|
850
840
|
}
|
|
851
|
-
|
|
841
|
+
|
|
842
|
+
// node_modules/loupe/lib/map.js
|
|
852
843
|
function inspectMapEntry([key, value], options) {
|
|
853
844
|
options.truncate -= 4;
|
|
854
845
|
key = options.inspect(key, options);
|
|
@@ -856,7 +847,6 @@ function inspectMapEntry([key, value], options) {
|
|
|
856
847
|
value = options.inspect(value, options);
|
|
857
848
|
return `${key} => ${value}`;
|
|
858
849
|
}
|
|
859
|
-
__name(inspectMapEntry, "inspectMapEntry");
|
|
860
850
|
function mapToEntries(map) {
|
|
861
851
|
const entries = [];
|
|
862
852
|
map.forEach((value, key) => {
|
|
@@ -864,16 +854,14 @@ function mapToEntries(map) {
|
|
|
864
854
|
});
|
|
865
855
|
return entries;
|
|
866
856
|
}
|
|
867
|
-
__name(mapToEntries, "mapToEntries");
|
|
868
857
|
function inspectMap(map, options) {
|
|
869
|
-
|
|
870
|
-
if (size <= 0) {
|
|
858
|
+
if (map.size === 0)
|
|
871
859
|
return "Map{}";
|
|
872
|
-
}
|
|
873
860
|
options.truncate -= 7;
|
|
874
861
|
return `Map{ ${inspectList(mapToEntries(map), options, inspectMapEntry)} }`;
|
|
875
862
|
}
|
|
876
|
-
|
|
863
|
+
|
|
864
|
+
// node_modules/loupe/lib/number.js
|
|
877
865
|
var isNaN = Number.isNaN || ((i) => i !== i);
|
|
878
866
|
function inspectNumber(number, options) {
|
|
879
867
|
if (isNaN(number)) {
|
|
@@ -890,21 +878,24 @@ function inspectNumber(number, options) {
|
|
|
890
878
|
}
|
|
891
879
|
return options.stylize(truncate(String(number), options.truncate), "number");
|
|
892
880
|
}
|
|
893
|
-
|
|
881
|
+
|
|
882
|
+
// node_modules/loupe/lib/bigint.js
|
|
894
883
|
function inspectBigInt(number, options) {
|
|
895
884
|
let nums = truncate(number.toString(), options.truncate - 1);
|
|
896
885
|
if (nums !== truncator)
|
|
897
886
|
nums += "n";
|
|
898
887
|
return options.stylize(nums, "bigint");
|
|
899
888
|
}
|
|
900
|
-
|
|
889
|
+
|
|
890
|
+
// node_modules/loupe/lib/regexp.js
|
|
901
891
|
function inspectRegExp(value, options) {
|
|
902
892
|
const flags = value.toString().split("/")[2];
|
|
903
893
|
const sourceLength = options.truncate - (2 + flags.length);
|
|
904
894
|
const source = value.source;
|
|
905
895
|
return options.stylize(`/${truncate(source, sourceLength)}/${flags}`, "regexp");
|
|
906
896
|
}
|
|
907
|
-
|
|
897
|
+
|
|
898
|
+
// node_modules/loupe/lib/set.js
|
|
908
899
|
function arrayFromSet(set2) {
|
|
909
900
|
const values = [];
|
|
910
901
|
set2.forEach((value) => {
|
|
@@ -912,14 +903,14 @@ function arrayFromSet(set2) {
|
|
|
912
903
|
});
|
|
913
904
|
return values;
|
|
914
905
|
}
|
|
915
|
-
__name(arrayFromSet, "arrayFromSet");
|
|
916
906
|
function inspectSet(set2, options) {
|
|
917
907
|
if (set2.size === 0)
|
|
918
908
|
return "Set{}";
|
|
919
909
|
options.truncate -= 7;
|
|
920
910
|
return `Set{ ${inspectList(arrayFromSet(set2), options)} }`;
|
|
921
911
|
}
|
|
922
|
-
|
|
912
|
+
|
|
913
|
+
// node_modules/loupe/lib/string.js
|
|
923
914
|
var stringEscapeChars = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", "g");
|
|
924
915
|
var escapeCharacters = {
|
|
925
916
|
"\b": "\\b",
|
|
@@ -935,36 +926,26 @@ var unicodeLength = 4;
|
|
|
935
926
|
function escape(char) {
|
|
936
927
|
return escapeCharacters[char] || `\\u${`0000${char.charCodeAt(0).toString(hex)}`.slice(-unicodeLength)}`;
|
|
937
928
|
}
|
|
938
|
-
__name(escape, "escape");
|
|
939
929
|
function inspectString(string, options) {
|
|
940
930
|
if (stringEscapeChars.test(string)) {
|
|
941
931
|
string = string.replace(stringEscapeChars, escape);
|
|
942
932
|
}
|
|
943
933
|
return options.stylize(`'${truncate(string, options.truncate - 2)}'`, "string");
|
|
944
934
|
}
|
|
945
|
-
|
|
935
|
+
|
|
936
|
+
// node_modules/loupe/lib/symbol.js
|
|
946
937
|
function inspectSymbol(value) {
|
|
947
938
|
if ("description" in Symbol.prototype) {
|
|
948
939
|
return value.description ? `Symbol(${value.description})` : "Symbol()";
|
|
949
940
|
}
|
|
950
941
|
return value.toString();
|
|
951
942
|
}
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
const { getPromiseDetails, kPending, kRejected } = process.binding("util");
|
|
956
|
-
if (Array.isArray(getPromiseDetails(Promise.resolve()))) {
|
|
957
|
-
getPromiseValue = /* @__PURE__ */ __name((value, options) => {
|
|
958
|
-
const [state, innerValue] = getPromiseDetails(value);
|
|
959
|
-
if (state === kPending) {
|
|
960
|
-
return "Promise{<pending>}";
|
|
961
|
-
}
|
|
962
|
-
return `Promise${state === kRejected ? "!" : ""}{${options.inspect(innerValue, options)}}`;
|
|
963
|
-
}, "getPromiseValue");
|
|
964
|
-
}
|
|
965
|
-
} catch (notNode) {
|
|
966
|
-
}
|
|
943
|
+
|
|
944
|
+
// node_modules/loupe/lib/promise.js
|
|
945
|
+
var getPromiseValue = () => "Promise{\u2026}";
|
|
967
946
|
var promise_default = getPromiseValue;
|
|
947
|
+
|
|
948
|
+
// node_modules/loupe/lib/object.js
|
|
968
949
|
function inspectObject(object, options) {
|
|
969
950
|
const properties = Object.getOwnPropertyNames(object);
|
|
970
951
|
const symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : [];
|
|
@@ -986,7 +967,8 @@ function inspectObject(object, options) {
|
|
|
986
967
|
}
|
|
987
968
|
return `{ ${propertyContents}${sep}${symbolContents} }`;
|
|
988
969
|
}
|
|
989
|
-
|
|
970
|
+
|
|
971
|
+
// node_modules/loupe/lib/class.js
|
|
990
972
|
var toStringTag = typeof Symbol !== "undefined" && Symbol.toStringTag ? Symbol.toStringTag : false;
|
|
991
973
|
function inspectClass(value, options) {
|
|
992
974
|
let name = "";
|
|
@@ -1000,14 +982,16 @@ function inspectClass(value, options) {
|
|
|
1000
982
|
options.truncate -= name.length;
|
|
1001
983
|
return `${name}${inspectObject(value, options)}`;
|
|
1002
984
|
}
|
|
1003
|
-
|
|
985
|
+
|
|
986
|
+
// node_modules/loupe/lib/arguments.js
|
|
1004
987
|
function inspectArguments(args, options) {
|
|
1005
988
|
if (args.length === 0)
|
|
1006
989
|
return "Arguments[]";
|
|
1007
990
|
options.truncate -= 13;
|
|
1008
991
|
return `Arguments[ ${inspectList(args, options)} ]`;
|
|
1009
992
|
}
|
|
1010
|
-
|
|
993
|
+
|
|
994
|
+
// node_modules/loupe/lib/error.js
|
|
1011
995
|
var errorKeys = [
|
|
1012
996
|
"stack",
|
|
1013
997
|
"line",
|
|
@@ -1041,7 +1025,8 @@ function inspectObject2(error, options) {
|
|
|
1041
1025
|
const propertyContents = inspectList(properties.map((key) => [key, error[key]]), options, inspectProperty);
|
|
1042
1026
|
return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ""}`;
|
|
1043
1027
|
}
|
|
1044
|
-
|
|
1028
|
+
|
|
1029
|
+
// node_modules/loupe/lib/html.js
|
|
1045
1030
|
function inspectAttribute([key, value], options) {
|
|
1046
1031
|
options.truncate -= 3;
|
|
1047
1032
|
if (!value) {
|
|
@@ -1049,11 +1034,19 @@ function inspectAttribute([key, value], options) {
|
|
|
1049
1034
|
}
|
|
1050
1035
|
return `${options.stylize(String(key), "yellow")}=${options.stylize(`"${value}"`, "string")}`;
|
|
1051
1036
|
}
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1037
|
+
function inspectNodeCollection(collection, options) {
|
|
1038
|
+
return inspectList(collection, options, inspectNode, "\n");
|
|
1039
|
+
}
|
|
1040
|
+
function inspectNode(node, options) {
|
|
1041
|
+
switch (node.nodeType) {
|
|
1042
|
+
case 1:
|
|
1043
|
+
return inspectHTML(node, options);
|
|
1044
|
+
case 3:
|
|
1045
|
+
return options.inspect(node.data, options);
|
|
1046
|
+
default:
|
|
1047
|
+
return options.inspect(node, options);
|
|
1048
|
+
}
|
|
1055
1049
|
}
|
|
1056
|
-
__name(inspectHTMLCollection, "inspectHTMLCollection");
|
|
1057
1050
|
function inspectHTML(element, options) {
|
|
1058
1051
|
const properties = element.getAttributeNames();
|
|
1059
1052
|
const name = element.tagName.toLowerCase();
|
|
@@ -1068,29 +1061,24 @@ function inspectHTML(element, options) {
|
|
|
1068
1061
|
}
|
|
1069
1062
|
options.truncate -= propertyContents.length;
|
|
1070
1063
|
const truncate2 = options.truncate;
|
|
1071
|
-
let children =
|
|
1064
|
+
let children = inspectNodeCollection(element.children, options);
|
|
1072
1065
|
if (children && children.length > truncate2) {
|
|
1073
1066
|
children = `${truncator}(${element.children.length})`;
|
|
1074
1067
|
}
|
|
1075
1068
|
return `${head}${propertyContents}${headClose}${children}${tail}`;
|
|
1076
1069
|
}
|
|
1077
|
-
|
|
1070
|
+
|
|
1071
|
+
// node_modules/loupe/lib/index.js
|
|
1078
1072
|
var symbolsSupported = typeof Symbol === "function" && typeof Symbol.for === "function";
|
|
1079
1073
|
var chaiInspect = symbolsSupported ? Symbol.for("chai/inspect") : "@@chai/inspect";
|
|
1080
|
-
var nodeInspect =
|
|
1081
|
-
try {
|
|
1082
|
-
const nodeUtil = require_util();
|
|
1083
|
-
nodeInspect = nodeUtil.inspect ? nodeUtil.inspect.custom : false;
|
|
1084
|
-
} catch (noNodeInspect) {
|
|
1085
|
-
nodeInspect = false;
|
|
1086
|
-
}
|
|
1074
|
+
var nodeInspect = Symbol.for("nodejs.util.inspect.custom");
|
|
1087
1075
|
var constructorMap = /* @__PURE__ */ new WeakMap();
|
|
1088
1076
|
var stringTagMap = {};
|
|
1089
1077
|
var baseTypesMap = {
|
|
1090
|
-
undefined:
|
|
1091
|
-
null:
|
|
1092
|
-
boolean:
|
|
1093
|
-
Boolean:
|
|
1078
|
+
undefined: (value, options) => options.stylize("undefined", "undefined"),
|
|
1079
|
+
null: (value, options) => options.stylize("null", "null"),
|
|
1080
|
+
boolean: (value, options) => options.stylize(String(value), "boolean"),
|
|
1081
|
+
Boolean: (value, options) => options.stylize(String(value), "boolean"),
|
|
1094
1082
|
number: inspectNumber,
|
|
1095
1083
|
Number: inspectNumber,
|
|
1096
1084
|
bigint: inspectBigInt,
|
|
@@ -1109,8 +1097,8 @@ var baseTypesMap = {
|
|
|
1109
1097
|
RegExp: inspectRegExp,
|
|
1110
1098
|
Promise: promise_default,
|
|
1111
1099
|
// WeakSet, WeakMap are totally opaque to us
|
|
1112
|
-
WeakSet:
|
|
1113
|
-
WeakMap:
|
|
1100
|
+
WeakSet: (value, options) => options.stylize("WeakSet{\u2026}", "special"),
|
|
1101
|
+
WeakMap: (value, options) => options.stylize("WeakMap{\u2026}", "special"),
|
|
1114
1102
|
Arguments: inspectArguments,
|
|
1115
1103
|
Int8Array: inspectTypedArray,
|
|
1116
1104
|
Uint8Array: inspectTypedArray,
|
|
@@ -1121,19 +1109,19 @@ var baseTypesMap = {
|
|
|
1121
1109
|
Uint32Array: inspectTypedArray,
|
|
1122
1110
|
Float32Array: inspectTypedArray,
|
|
1123
1111
|
Float64Array: inspectTypedArray,
|
|
1124
|
-
Generator:
|
|
1125
|
-
DataView:
|
|
1126
|
-
ArrayBuffer:
|
|
1112
|
+
Generator: () => "",
|
|
1113
|
+
DataView: () => "",
|
|
1114
|
+
ArrayBuffer: () => "",
|
|
1127
1115
|
Error: inspectObject2,
|
|
1128
|
-
HTMLCollection:
|
|
1129
|
-
NodeList:
|
|
1116
|
+
HTMLCollection: inspectNodeCollection,
|
|
1117
|
+
NodeList: inspectNodeCollection
|
|
1130
1118
|
};
|
|
1131
|
-
var inspectCustom =
|
|
1119
|
+
var inspectCustom = (value, options, type3, inspectFn) => {
|
|
1132
1120
|
if (chaiInspect in value && typeof value[chaiInspect] === "function") {
|
|
1133
1121
|
return value[chaiInspect](options);
|
|
1134
1122
|
}
|
|
1135
|
-
if (nodeInspect
|
|
1136
|
-
return value[nodeInspect](options.depth, options);
|
|
1123
|
+
if (nodeInspect in value && typeof value[nodeInspect] === "function") {
|
|
1124
|
+
return value[nodeInspect](options.depth, options, inspectFn);
|
|
1137
1125
|
}
|
|
1138
1126
|
if ("inspect" in value && typeof value.inspect === "function") {
|
|
1139
1127
|
return value.inspect(options.depth, options);
|
|
@@ -1145,7 +1133,7 @@ var inspectCustom = /* @__PURE__ */ __name((value, options, type3) => {
|
|
|
1145
1133
|
return stringTagMap[type3](value, options);
|
|
1146
1134
|
}
|
|
1147
1135
|
return "";
|
|
1148
|
-
}
|
|
1136
|
+
};
|
|
1149
1137
|
var toString = Object.prototype.toString;
|
|
1150
1138
|
function inspect(value, opts = {}) {
|
|
1151
1139
|
const options = normaliseOptions(opts, inspect);
|
|
@@ -1158,7 +1146,7 @@ function inspect(value, opts = {}) {
|
|
|
1158
1146
|
return baseTypesMap[type3](value, options);
|
|
1159
1147
|
}
|
|
1160
1148
|
if (customInspect && value) {
|
|
1161
|
-
const output = inspectCustom(value, options, type3);
|
|
1149
|
+
const output = inspectCustom(value, options, type3, inspect);
|
|
1162
1150
|
if (output) {
|
|
1163
1151
|
if (typeof output === "string")
|
|
1164
1152
|
return output;
|
|
@@ -1183,7 +1171,8 @@ function inspect(value, opts = {}) {
|
|
|
1183
1171
|
}
|
|
1184
1172
|
return options.stylize(String(value), type3);
|
|
1185
1173
|
}
|
|
1186
|
-
|
|
1174
|
+
|
|
1175
|
+
// node_modules/chai/lib/chai/config.js
|
|
1187
1176
|
var config = {
|
|
1188
1177
|
/**
|
|
1189
1178
|
* ### config.includeStack
|
|
@@ -1291,6 +1280,8 @@ var config = {
|
|
|
1291
1280
|
*/
|
|
1292
1281
|
deepEqual: null
|
|
1293
1282
|
};
|
|
1283
|
+
|
|
1284
|
+
// node_modules/chai/lib/chai/utils/inspect.js
|
|
1294
1285
|
function inspect2(obj, showHidden, depth, colors) {
|
|
1295
1286
|
let options = {
|
|
1296
1287
|
colors,
|
|
@@ -1300,7 +1291,8 @@ function inspect2(obj, showHidden, depth, colors) {
|
|
|
1300
1291
|
};
|
|
1301
1292
|
return inspect(obj, options);
|
|
1302
1293
|
}
|
|
1303
|
-
|
|
1294
|
+
|
|
1295
|
+
// node_modules/chai/lib/chai/utils/objDisplay.js
|
|
1304
1296
|
function objDisplay(obj) {
|
|
1305
1297
|
let str = inspect2(obj), type3 = Object.prototype.toString.call(obj);
|
|
1306
1298
|
if (config.truncateThreshold && str.length >= config.truncateThreshold) {
|
|
@@ -1318,7 +1310,8 @@ function objDisplay(obj) {
|
|
|
1318
1310
|
return str;
|
|
1319
1311
|
}
|
|
1320
1312
|
}
|
|
1321
|
-
|
|
1313
|
+
|
|
1314
|
+
// node_modules/chai/lib/chai/utils/getMessage.js
|
|
1322
1315
|
function getMessage2(obj, args) {
|
|
1323
1316
|
let negate = flag(obj, "negate");
|
|
1324
1317
|
let val = flag(obj, "object");
|
|
@@ -1338,7 +1331,8 @@ function getMessage2(obj, args) {
|
|
|
1338
1331
|
});
|
|
1339
1332
|
return flagMsg ? flagMsg + ": " + msg : msg;
|
|
1340
1333
|
}
|
|
1341
|
-
|
|
1334
|
+
|
|
1335
|
+
// node_modules/chai/lib/chai/utils/transferFlags.js
|
|
1342
1336
|
function transferFlags(assertion, object, includeAll) {
|
|
1343
1337
|
let flags = assertion.__flags || (assertion.__flags = /* @__PURE__ */ Object.create(null));
|
|
1344
1338
|
if (!object.__flags) {
|
|
@@ -1351,7 +1345,8 @@ function transferFlags(assertion, object, includeAll) {
|
|
|
1351
1345
|
}
|
|
1352
1346
|
}
|
|
1353
1347
|
}
|
|
1354
|
-
|
|
1348
|
+
|
|
1349
|
+
// node_modules/deep-eql/index.js
|
|
1355
1350
|
function type2(obj) {
|
|
1356
1351
|
if (typeof obj === "undefined") {
|
|
1357
1352
|
return "undefined";
|
|
@@ -1367,23 +1362,21 @@ function type2(obj) {
|
|
|
1367
1362
|
const sliceEnd = -1;
|
|
1368
1363
|
return Object.prototype.toString.call(obj).slice(sliceStart, sliceEnd);
|
|
1369
1364
|
}
|
|
1370
|
-
__name(type2, "type");
|
|
1371
1365
|
function FakeMap() {
|
|
1372
1366
|
this._key = "chai/deep-eql__" + Math.random() + Date.now();
|
|
1373
1367
|
}
|
|
1374
|
-
__name(FakeMap, "FakeMap");
|
|
1375
1368
|
FakeMap.prototype = {
|
|
1376
|
-
get:
|
|
1369
|
+
get: function get(key) {
|
|
1377
1370
|
return key[this._key];
|
|
1378
|
-
},
|
|
1379
|
-
set:
|
|
1371
|
+
},
|
|
1372
|
+
set: function set(key, value) {
|
|
1380
1373
|
if (Object.isExtensible(key)) {
|
|
1381
1374
|
Object.defineProperty(key, this._key, {
|
|
1382
1375
|
value,
|
|
1383
1376
|
configurable: true
|
|
1384
1377
|
});
|
|
1385
1378
|
}
|
|
1386
|
-
}
|
|
1379
|
+
}
|
|
1387
1380
|
};
|
|
1388
1381
|
var MemoizeMap = typeof WeakMap === "function" ? WeakMap : FakeMap;
|
|
1389
1382
|
function memoizeCompare(leftHandOperand, rightHandOperand, memoizeMap) {
|
|
@@ -1399,7 +1392,6 @@ function memoizeCompare(leftHandOperand, rightHandOperand, memoizeMap) {
|
|
|
1399
1392
|
}
|
|
1400
1393
|
return null;
|
|
1401
1394
|
}
|
|
1402
|
-
__name(memoizeCompare, "memoizeCompare");
|
|
1403
1395
|
function memoizeSet(leftHandOperand, rightHandOperand, memoizeMap, result) {
|
|
1404
1396
|
if (!memoizeMap || isPrimitive(leftHandOperand) || isPrimitive(rightHandOperand)) {
|
|
1405
1397
|
return;
|
|
@@ -1413,7 +1405,6 @@ function memoizeSet(leftHandOperand, rightHandOperand, memoizeMap, result) {
|
|
|
1413
1405
|
memoizeMap.set(leftHandOperand, leftHandMap);
|
|
1414
1406
|
}
|
|
1415
1407
|
}
|
|
1416
|
-
__name(memoizeSet, "memoizeSet");
|
|
1417
1408
|
var deep_eql_default = deepEqual;
|
|
1418
1409
|
function deepEqual(leftHandOperand, rightHandOperand, options) {
|
|
1419
1410
|
if (options && options.comparator) {
|
|
@@ -1425,7 +1416,6 @@ function deepEqual(leftHandOperand, rightHandOperand, options) {
|
|
|
1425
1416
|
}
|
|
1426
1417
|
return extensiveDeepEqual(leftHandOperand, rightHandOperand, options);
|
|
1427
1418
|
}
|
|
1428
|
-
__name(deepEqual, "deepEqual");
|
|
1429
1419
|
function simpleEqual(leftHandOperand, rightHandOperand) {
|
|
1430
1420
|
if (leftHandOperand === rightHandOperand) {
|
|
1431
1421
|
return leftHandOperand !== 0 || 1 / leftHandOperand === 1 / rightHandOperand;
|
|
@@ -1439,7 +1429,6 @@ function simpleEqual(leftHandOperand, rightHandOperand) {
|
|
|
1439
1429
|
}
|
|
1440
1430
|
return null;
|
|
1441
1431
|
}
|
|
1442
|
-
__name(simpleEqual, "simpleEqual");
|
|
1443
1432
|
function extensiveDeepEqual(leftHandOperand, rightHandOperand, options) {
|
|
1444
1433
|
options = options || {};
|
|
1445
1434
|
options.memoize = options.memoize === false ? false : options.memoize || new MemoizeMap();
|
|
@@ -1473,7 +1462,6 @@ function extensiveDeepEqual(leftHandOperand, rightHandOperand, options) {
|
|
|
1473
1462
|
memoizeSet(leftHandOperand, rightHandOperand, options.memoize, result);
|
|
1474
1463
|
return result;
|
|
1475
1464
|
}
|
|
1476
|
-
__name(extensiveDeepEqual, "extensiveDeepEqual");
|
|
1477
1465
|
function extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandType, options) {
|
|
1478
1466
|
switch (leftHandType) {
|
|
1479
1467
|
case "String":
|
|
@@ -1530,11 +1518,9 @@ function extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandTyp
|
|
|
1530
1518
|
return objectEqual(leftHandOperand, rightHandOperand, options);
|
|
1531
1519
|
}
|
|
1532
1520
|
}
|
|
1533
|
-
__name(extensiveDeepEqualByType, "extensiveDeepEqualByType");
|
|
1534
1521
|
function regexpEqual(leftHandOperand, rightHandOperand) {
|
|
1535
1522
|
return leftHandOperand.toString() === rightHandOperand.toString();
|
|
1536
1523
|
}
|
|
1537
|
-
__name(regexpEqual, "regexpEqual");
|
|
1538
1524
|
function entriesEqual(leftHandOperand, rightHandOperand, options) {
|
|
1539
1525
|
try {
|
|
1540
1526
|
if (leftHandOperand.size !== rightHandOperand.size) {
|
|
@@ -1548,15 +1534,14 @@ function entriesEqual(leftHandOperand, rightHandOperand, options) {
|
|
|
1548
1534
|
}
|
|
1549
1535
|
var leftHandItems = [];
|
|
1550
1536
|
var rightHandItems = [];
|
|
1551
|
-
leftHandOperand.forEach(
|
|
1537
|
+
leftHandOperand.forEach(function gatherEntries(key, value) {
|
|
1552
1538
|
leftHandItems.push([key, value]);
|
|
1553
|
-
}
|
|
1554
|
-
rightHandOperand.forEach(
|
|
1539
|
+
});
|
|
1540
|
+
rightHandOperand.forEach(function gatherEntries(key, value) {
|
|
1555
1541
|
rightHandItems.push([key, value]);
|
|
1556
|
-
}
|
|
1542
|
+
});
|
|
1557
1543
|
return iterableEqual(leftHandItems.sort(), rightHandItems.sort(), options);
|
|
1558
1544
|
}
|
|
1559
|
-
__name(entriesEqual, "entriesEqual");
|
|
1560
1545
|
function iterableEqual(leftHandOperand, rightHandOperand, options) {
|
|
1561
1546
|
var length = leftHandOperand.length;
|
|
1562
1547
|
if (length !== rightHandOperand.length) {
|
|
@@ -1573,15 +1558,12 @@ function iterableEqual(leftHandOperand, rightHandOperand, options) {
|
|
|
1573
1558
|
}
|
|
1574
1559
|
return true;
|
|
1575
1560
|
}
|
|
1576
|
-
__name(iterableEqual, "iterableEqual");
|
|
1577
1561
|
function generatorEqual(leftHandOperand, rightHandOperand, options) {
|
|
1578
1562
|
return iterableEqual(getGeneratorEntries(leftHandOperand), getGeneratorEntries(rightHandOperand), options);
|
|
1579
1563
|
}
|
|
1580
|
-
__name(generatorEqual, "generatorEqual");
|
|
1581
1564
|
function hasIteratorFunction(target) {
|
|
1582
1565
|
return typeof Symbol !== "undefined" && typeof target === "object" && typeof Symbol.iterator !== "undefined" && typeof target[Symbol.iterator] === "function";
|
|
1583
1566
|
}
|
|
1584
|
-
__name(hasIteratorFunction, "hasIteratorFunction");
|
|
1585
1567
|
function getIteratorEntries(target) {
|
|
1586
1568
|
if (hasIteratorFunction(target)) {
|
|
1587
1569
|
try {
|
|
@@ -1592,7 +1574,6 @@ function getIteratorEntries(target) {
|
|
|
1592
1574
|
}
|
|
1593
1575
|
return [];
|
|
1594
1576
|
}
|
|
1595
|
-
__name(getIteratorEntries, "getIteratorEntries");
|
|
1596
1577
|
function getGeneratorEntries(generator) {
|
|
1597
1578
|
var generatorResult = generator.next();
|
|
1598
1579
|
var accumulator = [generatorResult.value];
|
|
@@ -1602,7 +1583,6 @@ function getGeneratorEntries(generator) {
|
|
|
1602
1583
|
}
|
|
1603
1584
|
return accumulator;
|
|
1604
1585
|
}
|
|
1605
|
-
__name(getGeneratorEntries, "getGeneratorEntries");
|
|
1606
1586
|
function getEnumerableKeys(target) {
|
|
1607
1587
|
var keys = [];
|
|
1608
1588
|
for (var key in target) {
|
|
@@ -1610,7 +1590,6 @@ function getEnumerableKeys(target) {
|
|
|
1610
1590
|
}
|
|
1611
1591
|
return keys;
|
|
1612
1592
|
}
|
|
1613
|
-
__name(getEnumerableKeys, "getEnumerableKeys");
|
|
1614
1593
|
function getEnumerableSymbols(target) {
|
|
1615
1594
|
var keys = [];
|
|
1616
1595
|
var allKeys = Object.getOwnPropertySymbols(target);
|
|
@@ -1622,7 +1601,6 @@ function getEnumerableSymbols(target) {
|
|
|
1622
1601
|
}
|
|
1623
1602
|
return keys;
|
|
1624
1603
|
}
|
|
1625
|
-
__name(getEnumerableSymbols, "getEnumerableSymbols");
|
|
1626
1604
|
function keysEqual(leftHandOperand, rightHandOperand, keys, options) {
|
|
1627
1605
|
var length = keys.length;
|
|
1628
1606
|
if (length === 0) {
|
|
@@ -1635,7 +1613,6 @@ function keysEqual(leftHandOperand, rightHandOperand, keys, options) {
|
|
|
1635
1613
|
}
|
|
1636
1614
|
return true;
|
|
1637
1615
|
}
|
|
1638
|
-
__name(keysEqual, "keysEqual");
|
|
1639
1616
|
function objectEqual(leftHandOperand, rightHandOperand, options) {
|
|
1640
1617
|
var leftHandKeys = getEnumerableKeys(leftHandOperand);
|
|
1641
1618
|
var rightHandKeys = getEnumerableKeys(rightHandOperand);
|
|
@@ -1661,27 +1638,25 @@ function objectEqual(leftHandOperand, rightHandOperand, options) {
|
|
|
1661
1638
|
}
|
|
1662
1639
|
return false;
|
|
1663
1640
|
}
|
|
1664
|
-
__name(objectEqual, "objectEqual");
|
|
1665
1641
|
function isPrimitive(value) {
|
|
1666
1642
|
return value === null || typeof value !== "object";
|
|
1667
1643
|
}
|
|
1668
|
-
__name(isPrimitive, "isPrimitive");
|
|
1669
1644
|
function mapSymbols(arr) {
|
|
1670
|
-
return arr.map(
|
|
1645
|
+
return arr.map(function mapSymbol(entry) {
|
|
1671
1646
|
if (typeof entry === "symbol") {
|
|
1672
1647
|
return entry.toString();
|
|
1673
1648
|
}
|
|
1674
1649
|
return entry;
|
|
1675
|
-
}
|
|
1650
|
+
});
|
|
1676
1651
|
}
|
|
1677
|
-
|
|
1652
|
+
|
|
1653
|
+
// node_modules/pathval/index.js
|
|
1678
1654
|
function hasProperty(obj, name) {
|
|
1679
1655
|
if (typeof obj === "undefined" || obj === null) {
|
|
1680
1656
|
return false;
|
|
1681
1657
|
}
|
|
1682
1658
|
return name in Object(obj);
|
|
1683
1659
|
}
|
|
1684
|
-
__name(hasProperty, "hasProperty");
|
|
1685
1660
|
function parsePath(path) {
|
|
1686
1661
|
const str = path.replace(/([^\\])\[/g, "$1.[");
|
|
1687
1662
|
const parts = str.match(/(\\\.|[^.]+?)+/g);
|
|
@@ -1700,7 +1675,6 @@ function parsePath(path) {
|
|
|
1700
1675
|
return parsed;
|
|
1701
1676
|
});
|
|
1702
1677
|
}
|
|
1703
|
-
__name(parsePath, "parsePath");
|
|
1704
1678
|
function internalGetPathValue(obj, parsed, pathDepth) {
|
|
1705
1679
|
let temporaryValue = obj;
|
|
1706
1680
|
let res = null;
|
|
@@ -1720,7 +1694,6 @@ function internalGetPathValue(obj, parsed, pathDepth) {
|
|
|
1720
1694
|
}
|
|
1721
1695
|
return res;
|
|
1722
1696
|
}
|
|
1723
|
-
__name(internalGetPathValue, "internalGetPathValue");
|
|
1724
1697
|
function getPathInfo(obj, path) {
|
|
1725
1698
|
const parsed = parsePath(path);
|
|
1726
1699
|
const last = parsed[parsed.length - 1];
|
|
@@ -1732,11 +1705,9 @@ function getPathInfo(obj, path) {
|
|
|
1732
1705
|
info.exists = hasProperty(info.parent, info.name);
|
|
1733
1706
|
return info;
|
|
1734
1707
|
}
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
__name(this, "Assertion");
|
|
1739
|
-
}
|
|
1708
|
+
|
|
1709
|
+
// node_modules/chai/lib/chai/assertion.js
|
|
1710
|
+
var Assertion = class {
|
|
1740
1711
|
/** @type {{}} */
|
|
1741
1712
|
__flags = {};
|
|
1742
1713
|
/**
|
|
@@ -1775,7 +1746,7 @@ var Assertion = class _Assertion {
|
|
|
1775
1746
|
* @param {boolean} [lockSsfi] (optional) whether or not the ssfi flag is locked
|
|
1776
1747
|
*/
|
|
1777
1748
|
constructor(obj, msg, ssfi, lockSsfi) {
|
|
1778
|
-
flag(this, "ssfi", ssfi ||
|
|
1749
|
+
flag(this, "ssfi", ssfi || Assertion);
|
|
1779
1750
|
flag(this, "lockSsfi", lockSsfi);
|
|
1780
1751
|
flag(this, "object", obj);
|
|
1781
1752
|
flag(this, "message", msg);
|
|
@@ -1913,15 +1884,18 @@ var Assertion = class _Assertion {
|
|
|
1913
1884
|
flag(this, "object", val);
|
|
1914
1885
|
}
|
|
1915
1886
|
};
|
|
1887
|
+
|
|
1888
|
+
// node_modules/chai/lib/chai/utils/isProxyEnabled.js
|
|
1916
1889
|
function isProxyEnabled() {
|
|
1917
1890
|
return config.useProxy && typeof Proxy !== "undefined" && typeof Reflect !== "undefined";
|
|
1918
1891
|
}
|
|
1919
|
-
|
|
1892
|
+
|
|
1893
|
+
// node_modules/chai/lib/chai/utils/addProperty.js
|
|
1920
1894
|
function addProperty(ctx, name, getter) {
|
|
1921
1895
|
getter = getter === void 0 ? function() {
|
|
1922
1896
|
} : getter;
|
|
1923
1897
|
Object.defineProperty(ctx, name, {
|
|
1924
|
-
get:
|
|
1898
|
+
get: function propertyGetter() {
|
|
1925
1899
|
if (!isProxyEnabled() && !flag(this, "lockSsfi")) {
|
|
1926
1900
|
flag(this, "ssfi", propertyGetter);
|
|
1927
1901
|
}
|
|
@@ -1931,18 +1905,19 @@ function addProperty(ctx, name, getter) {
|
|
|
1931
1905
|
let newAssertion = new Assertion();
|
|
1932
1906
|
transferFlags(this, newAssertion);
|
|
1933
1907
|
return newAssertion;
|
|
1934
|
-
},
|
|
1908
|
+
},
|
|
1935
1909
|
configurable: true
|
|
1936
1910
|
});
|
|
1937
1911
|
}
|
|
1938
|
-
|
|
1912
|
+
|
|
1913
|
+
// node_modules/chai/lib/chai/utils/addLengthGuard.js
|
|
1939
1914
|
var fnLengthDesc = Object.getOwnPropertyDescriptor(function() {
|
|
1940
1915
|
}, "length");
|
|
1941
1916
|
function addLengthGuard(fn, assertionName, isChainable) {
|
|
1942
1917
|
if (!fnLengthDesc.configurable)
|
|
1943
1918
|
return fn;
|
|
1944
1919
|
Object.defineProperty(fn, "length", {
|
|
1945
|
-
get:
|
|
1920
|
+
get: function() {
|
|
1946
1921
|
if (isChainable) {
|
|
1947
1922
|
throw Error(
|
|
1948
1923
|
"Invalid Chai property: " + assertionName + '.length. Due to a compatibility issue, "length" cannot directly follow "' + assertionName + '". Use "' + assertionName + '.lengthOf" instead.'
|
|
@@ -1951,11 +1926,12 @@ function addLengthGuard(fn, assertionName, isChainable) {
|
|
|
1951
1926
|
throw Error(
|
|
1952
1927
|
"Invalid Chai property: " + assertionName + '.length. See docs for proper usage of "' + assertionName + '".'
|
|
1953
1928
|
);
|
|
1954
|
-
}
|
|
1929
|
+
}
|
|
1955
1930
|
});
|
|
1956
1931
|
return fn;
|
|
1957
1932
|
}
|
|
1958
|
-
|
|
1933
|
+
|
|
1934
|
+
// node_modules/chai/lib/chai/utils/getProperties.js
|
|
1959
1935
|
function getProperties(object) {
|
|
1960
1936
|
let result = Object.getOwnPropertyNames(object);
|
|
1961
1937
|
function addProperty2(property) {
|
|
@@ -1963,7 +1939,6 @@ function getProperties(object) {
|
|
|
1963
1939
|
result.push(property);
|
|
1964
1940
|
}
|
|
1965
1941
|
}
|
|
1966
|
-
__name(addProperty2, "addProperty");
|
|
1967
1942
|
let proto = Object.getPrototypeOf(object);
|
|
1968
1943
|
while (proto !== null) {
|
|
1969
1944
|
Object.getOwnPropertyNames(proto).forEach(addProperty2);
|
|
@@ -1971,13 +1946,14 @@ function getProperties(object) {
|
|
|
1971
1946
|
}
|
|
1972
1947
|
return result;
|
|
1973
1948
|
}
|
|
1974
|
-
|
|
1949
|
+
|
|
1950
|
+
// node_modules/chai/lib/chai/utils/proxify.js
|
|
1975
1951
|
var builtins = ["__flags", "__methods", "_obj", "assert"];
|
|
1976
1952
|
function proxify(obj, nonChainableMethodName) {
|
|
1977
1953
|
if (!isProxyEnabled())
|
|
1978
1954
|
return obj;
|
|
1979
1955
|
return new Proxy(obj, {
|
|
1980
|
-
get:
|
|
1956
|
+
get: function proxyGetter(target, property) {
|
|
1981
1957
|
if (typeof property === "string" && config.proxyExcludedKeys.indexOf(property) === -1 && !Reflect.has(target, property)) {
|
|
1982
1958
|
if (nonChainableMethodName) {
|
|
1983
1959
|
throw Error(
|
|
@@ -2011,10 +1987,9 @@ function proxify(obj, nonChainableMethodName) {
|
|
|
2011
1987
|
flag(target, "ssfi", proxyGetter);
|
|
2012
1988
|
}
|
|
2013
1989
|
return Reflect.get(target, property);
|
|
2014
|
-
}
|
|
1990
|
+
}
|
|
2015
1991
|
});
|
|
2016
1992
|
}
|
|
2017
|
-
__name(proxify, "proxify");
|
|
2018
1993
|
function stringDistanceCapped(strA, strB, cap) {
|
|
2019
1994
|
if (Math.abs(strA.length - strB.length) >= cap) {
|
|
2020
1995
|
return cap;
|
|
@@ -2043,9 +2018,10 @@ function stringDistanceCapped(strA, strB, cap) {
|
|
|
2043
2018
|
}
|
|
2044
2019
|
return memo[strA.length][strB.length];
|
|
2045
2020
|
}
|
|
2046
|
-
|
|
2021
|
+
|
|
2022
|
+
// node_modules/chai/lib/chai/utils/addMethod.js
|
|
2047
2023
|
function addMethod(ctx, name, method) {
|
|
2048
|
-
let methodWrapper =
|
|
2024
|
+
let methodWrapper = function() {
|
|
2049
2025
|
if (!flag(this, "lockSsfi")) {
|
|
2050
2026
|
flag(this, "ssfi", methodWrapper);
|
|
2051
2027
|
}
|
|
@@ -2055,18 +2031,19 @@ function addMethod(ctx, name, method) {
|
|
|
2055
2031
|
let newAssertion = new Assertion();
|
|
2056
2032
|
transferFlags(this, newAssertion);
|
|
2057
2033
|
return newAssertion;
|
|
2058
|
-
}
|
|
2034
|
+
};
|
|
2059
2035
|
addLengthGuard(methodWrapper, name, false);
|
|
2060
2036
|
ctx[name] = proxify(methodWrapper, name);
|
|
2061
2037
|
}
|
|
2062
|
-
|
|
2038
|
+
|
|
2039
|
+
// node_modules/chai/lib/chai/utils/overwriteProperty.js
|
|
2063
2040
|
function overwriteProperty(ctx, name, getter) {
|
|
2064
|
-
let _get = Object.getOwnPropertyDescriptor(ctx, name), _super =
|
|
2065
|
-
}
|
|
2041
|
+
let _get = Object.getOwnPropertyDescriptor(ctx, name), _super = function() {
|
|
2042
|
+
};
|
|
2066
2043
|
if (_get && "function" === typeof _get.get)
|
|
2067
2044
|
_super = _get.get;
|
|
2068
2045
|
Object.defineProperty(ctx, name, {
|
|
2069
|
-
get:
|
|
2046
|
+
get: function overwritingPropertyGetter() {
|
|
2070
2047
|
if (!isProxyEnabled() && !flag(this, "lockSsfi")) {
|
|
2071
2048
|
flag(this, "ssfi", overwritingPropertyGetter);
|
|
2072
2049
|
}
|
|
@@ -2080,18 +2057,19 @@ function overwriteProperty(ctx, name, getter) {
|
|
|
2080
2057
|
let newAssertion = new Assertion();
|
|
2081
2058
|
transferFlags(this, newAssertion);
|
|
2082
2059
|
return newAssertion;
|
|
2083
|
-
},
|
|
2060
|
+
},
|
|
2084
2061
|
configurable: true
|
|
2085
2062
|
});
|
|
2086
2063
|
}
|
|
2087
|
-
|
|
2064
|
+
|
|
2065
|
+
// node_modules/chai/lib/chai/utils/overwriteMethod.js
|
|
2088
2066
|
function overwriteMethod(ctx, name, method) {
|
|
2089
|
-
let _method = ctx[name], _super =
|
|
2067
|
+
let _method = ctx[name], _super = function() {
|
|
2090
2068
|
throw new Error(name + " is not a function");
|
|
2091
|
-
}
|
|
2069
|
+
};
|
|
2092
2070
|
if (_method && "function" === typeof _method)
|
|
2093
2071
|
_super = _method;
|
|
2094
|
-
let overwritingMethodWrapper =
|
|
2072
|
+
let overwritingMethodWrapper = function() {
|
|
2095
2073
|
if (!flag(this, "lockSsfi")) {
|
|
2096
2074
|
flag(this, "ssfi", overwritingMethodWrapper);
|
|
2097
2075
|
}
|
|
@@ -2105,14 +2083,15 @@ function overwriteMethod(ctx, name, method) {
|
|
|
2105
2083
|
let newAssertion = new Assertion();
|
|
2106
2084
|
transferFlags(this, newAssertion);
|
|
2107
2085
|
return newAssertion;
|
|
2108
|
-
}
|
|
2086
|
+
};
|
|
2109
2087
|
addLengthGuard(overwritingMethodWrapper, name, false);
|
|
2110
2088
|
ctx[name] = proxify(overwritingMethodWrapper, name);
|
|
2111
2089
|
}
|
|
2112
|
-
|
|
2090
|
+
|
|
2091
|
+
// node_modules/chai/lib/chai/utils/addChainableMethod.js
|
|
2113
2092
|
var canSetPrototype = typeof Object.setPrototypeOf === "function";
|
|
2114
|
-
var testFn =
|
|
2115
|
-
}
|
|
2093
|
+
var testFn = function() {
|
|
2094
|
+
};
|
|
2116
2095
|
var excludeNames = Object.getOwnPropertyNames(testFn).filter(function(name) {
|
|
2117
2096
|
let propDesc = Object.getOwnPropertyDescriptor(testFn, name);
|
|
2118
2097
|
if (typeof propDesc !== "object")
|
|
@@ -2123,8 +2102,8 @@ var call = Function.prototype.call;
|
|
|
2123
2102
|
var apply = Function.prototype.apply;
|
|
2124
2103
|
function addChainableMethod(ctx, name, method, chainingBehavior) {
|
|
2125
2104
|
if (typeof chainingBehavior !== "function") {
|
|
2126
|
-
chainingBehavior =
|
|
2127
|
-
}
|
|
2105
|
+
chainingBehavior = function() {
|
|
2106
|
+
};
|
|
2128
2107
|
}
|
|
2129
2108
|
let chainableBehavior = {
|
|
2130
2109
|
method,
|
|
@@ -2135,9 +2114,9 @@ function addChainableMethod(ctx, name, method, chainingBehavior) {
|
|
|
2135
2114
|
}
|
|
2136
2115
|
ctx.__methods[name] = chainableBehavior;
|
|
2137
2116
|
Object.defineProperty(ctx, name, {
|
|
2138
|
-
get:
|
|
2117
|
+
get: function chainableMethodGetter() {
|
|
2139
2118
|
chainableBehavior.chainingBehavior.call(this);
|
|
2140
|
-
let chainableMethodWrapper =
|
|
2119
|
+
let chainableMethodWrapper = function() {
|
|
2141
2120
|
if (!flag(this, "lockSsfi")) {
|
|
2142
2121
|
flag(this, "ssfi", chainableMethodWrapper);
|
|
2143
2122
|
}
|
|
@@ -2148,7 +2127,7 @@ function addChainableMethod(ctx, name, method, chainingBehavior) {
|
|
|
2148
2127
|
let newAssertion = new Assertion();
|
|
2149
2128
|
transferFlags(this, newAssertion);
|
|
2150
2129
|
return newAssertion;
|
|
2151
|
-
}
|
|
2130
|
+
};
|
|
2152
2131
|
addLengthGuard(chainableMethodWrapper, name, true);
|
|
2153
2132
|
if (canSetPrototype) {
|
|
2154
2133
|
let prototype = Object.create(this);
|
|
@@ -2167,15 +2146,16 @@ function addChainableMethod(ctx, name, method, chainingBehavior) {
|
|
|
2167
2146
|
}
|
|
2168
2147
|
transferFlags(this, chainableMethodWrapper);
|
|
2169
2148
|
return proxify(chainableMethodWrapper);
|
|
2170
|
-
},
|
|
2149
|
+
},
|
|
2171
2150
|
configurable: true
|
|
2172
2151
|
});
|
|
2173
2152
|
}
|
|
2174
|
-
|
|
2153
|
+
|
|
2154
|
+
// node_modules/chai/lib/chai/utils/overwriteChainableMethod.js
|
|
2175
2155
|
function overwriteChainableMethod(ctx, name, method, chainingBehavior) {
|
|
2176
2156
|
let chainableBehavior = ctx.__methods[name];
|
|
2177
2157
|
let _chainingBehavior = chainableBehavior.chainingBehavior;
|
|
2178
|
-
chainableBehavior.chainingBehavior =
|
|
2158
|
+
chainableBehavior.chainingBehavior = function overwritingChainableMethodGetter() {
|
|
2179
2159
|
let result = chainingBehavior(_chainingBehavior).call(this);
|
|
2180
2160
|
if (result !== void 0) {
|
|
2181
2161
|
return result;
|
|
@@ -2183,9 +2163,9 @@ function overwriteChainableMethod(ctx, name, method, chainingBehavior) {
|
|
|
2183
2163
|
let newAssertion = new Assertion();
|
|
2184
2164
|
transferFlags(this, newAssertion);
|
|
2185
2165
|
return newAssertion;
|
|
2186
|
-
}
|
|
2166
|
+
};
|
|
2187
2167
|
let _method = chainableBehavior.method;
|
|
2188
|
-
chainableBehavior.method =
|
|
2168
|
+
chainableBehavior.method = function overwritingChainableMethodWrapper() {
|
|
2189
2169
|
let result = method(_method).apply(this, arguments);
|
|
2190
2170
|
if (result !== void 0) {
|
|
2191
2171
|
return result;
|
|
@@ -2193,13 +2173,15 @@ function overwriteChainableMethod(ctx, name, method, chainingBehavior) {
|
|
|
2193
2173
|
let newAssertion = new Assertion();
|
|
2194
2174
|
transferFlags(this, newAssertion);
|
|
2195
2175
|
return newAssertion;
|
|
2196
|
-
}
|
|
2176
|
+
};
|
|
2197
2177
|
}
|
|
2198
|
-
|
|
2178
|
+
|
|
2179
|
+
// node_modules/chai/lib/chai/utils/compareByInspect.js
|
|
2199
2180
|
function compareByInspect(a, b) {
|
|
2200
2181
|
return inspect2(a) < inspect2(b) ? -1 : 1;
|
|
2201
2182
|
}
|
|
2202
|
-
|
|
2183
|
+
|
|
2184
|
+
// node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js
|
|
2203
2185
|
function getOwnEnumerablePropertySymbols(obj) {
|
|
2204
2186
|
if (typeof Object.getOwnPropertySymbols !== "function")
|
|
2205
2187
|
return [];
|
|
@@ -2207,18 +2189,21 @@ function getOwnEnumerablePropertySymbols(obj) {
|
|
|
2207
2189
|
return Object.getOwnPropertyDescriptor(obj, sym).enumerable;
|
|
2208
2190
|
});
|
|
2209
2191
|
}
|
|
2210
|
-
|
|
2192
|
+
|
|
2193
|
+
// node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js
|
|
2211
2194
|
function getOwnEnumerableProperties(obj) {
|
|
2212
2195
|
return Object.keys(obj).concat(getOwnEnumerablePropertySymbols(obj));
|
|
2213
2196
|
}
|
|
2214
|
-
|
|
2197
|
+
|
|
2198
|
+
// node_modules/chai/lib/chai/utils/isNaN.js
|
|
2215
2199
|
var isNaN2 = Number.isNaN;
|
|
2200
|
+
|
|
2201
|
+
// node_modules/chai/lib/chai/utils/getOperator.js
|
|
2216
2202
|
function isObjectType(obj) {
|
|
2217
2203
|
let objectType = type(obj);
|
|
2218
2204
|
let objectTypes = ["Array", "Object", "Function"];
|
|
2219
2205
|
return objectTypes.indexOf(objectType) !== -1;
|
|
2220
2206
|
}
|
|
2221
|
-
__name(isObjectType, "isObjectType");
|
|
2222
2207
|
function getOperator(obj, args) {
|
|
2223
2208
|
let operator = flag(obj, "operator");
|
|
2224
2209
|
let negate = flag(obj, "negate");
|
|
@@ -2242,19 +2227,19 @@ function getOperator(obj, args) {
|
|
|
2242
2227
|
}
|
|
2243
2228
|
return isObject ? "deepStrictEqual" : "strictEqual";
|
|
2244
2229
|
}
|
|
2245
|
-
|
|
2230
|
+
|
|
2231
|
+
// node_modules/chai/lib/chai/utils/index.js
|
|
2246
2232
|
function getName(fn) {
|
|
2247
2233
|
return fn.name;
|
|
2248
2234
|
}
|
|
2249
|
-
__name(getName, "getName");
|
|
2250
2235
|
function isRegExp2(obj) {
|
|
2251
2236
|
return Object.prototype.toString.call(obj) === "[object RegExp]";
|
|
2252
2237
|
}
|
|
2253
|
-
__name(isRegExp2, "isRegExp");
|
|
2254
2238
|
function isNumeric(obj) {
|
|
2255
2239
|
return ["Number", "BigInt"].includes(type(obj));
|
|
2256
2240
|
}
|
|
2257
|
-
|
|
2241
|
+
|
|
2242
|
+
// node_modules/chai/lib/chai/core/assertions.js
|
|
2258
2243
|
var { flag: flag2 } = utils_exports;
|
|
2259
2244
|
[
|
|
2260
2245
|
"to",
|
|
@@ -2331,17 +2316,14 @@ function an(type3, msg) {
|
|
|
2331
2316
|
);
|
|
2332
2317
|
}
|
|
2333
2318
|
}
|
|
2334
|
-
__name(an, "an");
|
|
2335
2319
|
Assertion.addChainableMethod("an", an);
|
|
2336
2320
|
Assertion.addChainableMethod("a", an);
|
|
2337
2321
|
function SameValueZero(a, b) {
|
|
2338
2322
|
return isNaN2(a) && isNaN2(b) || a === b;
|
|
2339
2323
|
}
|
|
2340
|
-
__name(SameValueZero, "SameValueZero");
|
|
2341
2324
|
function includeChainingBehavior() {
|
|
2342
2325
|
flag2(this, "contains", true);
|
|
2343
2326
|
}
|
|
2344
|
-
__name(includeChainingBehavior, "includeChainingBehavior");
|
|
2345
2327
|
function include(val, msg) {
|
|
2346
2328
|
if (msg)
|
|
2347
2329
|
flag2(this, "message", msg);
|
|
@@ -2427,7 +2409,6 @@ function include(val, msg) {
|
|
|
2427
2409
|
"expected #{this} to not " + descriptor + "include " + inspect2(val)
|
|
2428
2410
|
);
|
|
2429
2411
|
}
|
|
2430
|
-
__name(include, "include");
|
|
2431
2412
|
Assertion.addChainableMethod("include", include, includeChainingBehavior);
|
|
2432
2413
|
Assertion.addChainableMethod("contain", include, includeChainingBehavior);
|
|
2433
2414
|
Assertion.addChainableMethod("contains", include, includeChainingBehavior);
|
|
@@ -2510,7 +2491,6 @@ function assertExist() {
|
|
|
2510
2491
|
"expected #{this} to not exist"
|
|
2511
2492
|
);
|
|
2512
2493
|
}
|
|
2513
|
-
__name(assertExist, "assertExist");
|
|
2514
2494
|
Assertion.addProperty("exist", assertExist);
|
|
2515
2495
|
Assertion.addProperty("exists", assertExist);
|
|
2516
2496
|
Assertion.addProperty("empty", function() {
|
|
@@ -2560,7 +2540,6 @@ function checkArguments() {
|
|
|
2560
2540
|
"expected #{this} to not be arguments"
|
|
2561
2541
|
);
|
|
2562
2542
|
}
|
|
2563
|
-
__name(checkArguments, "checkArguments");
|
|
2564
2543
|
Assertion.addProperty("arguments", checkArguments);
|
|
2565
2544
|
Assertion.addProperty("Arguments", checkArguments);
|
|
2566
2545
|
function assertEqual(val, msg) {
|
|
@@ -2583,7 +2562,6 @@ function assertEqual(val, msg) {
|
|
|
2583
2562
|
);
|
|
2584
2563
|
}
|
|
2585
2564
|
}
|
|
2586
|
-
__name(assertEqual, "assertEqual");
|
|
2587
2565
|
Assertion.addMethod("equal", assertEqual);
|
|
2588
2566
|
Assertion.addMethod("equals", assertEqual);
|
|
2589
2567
|
Assertion.addMethod("eq", assertEqual);
|
|
@@ -2600,7 +2578,6 @@ function assertEql(obj, msg) {
|
|
|
2600
2578
|
true
|
|
2601
2579
|
);
|
|
2602
2580
|
}
|
|
2603
|
-
__name(assertEql, "assertEql");
|
|
2604
2581
|
Assertion.addMethod("eql", assertEql);
|
|
2605
2582
|
Assertion.addMethod("eqls", assertEql);
|
|
2606
2583
|
function assertAbove(n, msg) {
|
|
@@ -2654,7 +2631,6 @@ function assertAbove(n, msg) {
|
|
|
2654
2631
|
);
|
|
2655
2632
|
}
|
|
2656
2633
|
}
|
|
2657
|
-
__name(assertAbove, "assertAbove");
|
|
2658
2634
|
Assertion.addMethod("above", assertAbove);
|
|
2659
2635
|
Assertion.addMethod("gt", assertAbove);
|
|
2660
2636
|
Assertion.addMethod("greaterThan", assertAbove);
|
|
@@ -2702,7 +2678,6 @@ function assertLeast(n, msg) {
|
|
|
2702
2678
|
);
|
|
2703
2679
|
}
|
|
2704
2680
|
}
|
|
2705
|
-
__name(assertLeast, "assertLeast");
|
|
2706
2681
|
Assertion.addMethod("least", assertLeast);
|
|
2707
2682
|
Assertion.addMethod("gte", assertLeast);
|
|
2708
2683
|
Assertion.addMethod("greaterThanOrEqual", assertLeast);
|
|
@@ -2750,7 +2725,6 @@ function assertBelow(n, msg) {
|
|
|
2750
2725
|
);
|
|
2751
2726
|
}
|
|
2752
2727
|
}
|
|
2753
|
-
__name(assertBelow, "assertBelow");
|
|
2754
2728
|
Assertion.addMethod("below", assertBelow);
|
|
2755
2729
|
Assertion.addMethod("lt", assertBelow);
|
|
2756
2730
|
Assertion.addMethod("lessThan", assertBelow);
|
|
@@ -2798,7 +2772,6 @@ function assertMost(n, msg) {
|
|
|
2798
2772
|
);
|
|
2799
2773
|
}
|
|
2800
2774
|
}
|
|
2801
|
-
__name(assertMost, "assertMost");
|
|
2802
2775
|
Assertion.addMethod("most", assertMost);
|
|
2803
2776
|
Assertion.addMethod("lte", assertMost);
|
|
2804
2777
|
Assertion.addMethod("lessThanOrEqual", assertMost);
|
|
@@ -2873,7 +2846,6 @@ function assertInstanceOf(constructor, msg) {
|
|
|
2873
2846
|
"expected #{this} to not be an instance of " + name
|
|
2874
2847
|
);
|
|
2875
2848
|
}
|
|
2876
|
-
__name(assertInstanceOf, "assertInstanceOf");
|
|
2877
2849
|
Assertion.addMethod("instanceof", assertInstanceOf);
|
|
2878
2850
|
Assertion.addMethod("instanceOf", assertInstanceOf);
|
|
2879
2851
|
function assertProperty(name, val, msg) {
|
|
@@ -2946,13 +2918,11 @@ function assertProperty(name, val, msg) {
|
|
|
2946
2918
|
}
|
|
2947
2919
|
flag2(this, "object", value);
|
|
2948
2920
|
}
|
|
2949
|
-
__name(assertProperty, "assertProperty");
|
|
2950
2921
|
Assertion.addMethod("property", assertProperty);
|
|
2951
2922
|
function assertOwnProperty(_name, _value, _msg) {
|
|
2952
2923
|
flag2(this, "own", true);
|
|
2953
2924
|
assertProperty.apply(this, arguments);
|
|
2954
2925
|
}
|
|
2955
|
-
__name(assertOwnProperty, "assertOwnProperty");
|
|
2956
2926
|
Assertion.addMethod("ownProperty", assertOwnProperty);
|
|
2957
2927
|
Assertion.addMethod("haveOwnProperty", assertOwnProperty);
|
|
2958
2928
|
function assertOwnPropertyDescriptor(name, descriptor, msg) {
|
|
@@ -2983,13 +2953,11 @@ function assertOwnPropertyDescriptor(name, descriptor, msg) {
|
|
|
2983
2953
|
}
|
|
2984
2954
|
flag2(this, "object", actualDescriptor);
|
|
2985
2955
|
}
|
|
2986
|
-
__name(assertOwnPropertyDescriptor, "assertOwnPropertyDescriptor");
|
|
2987
2956
|
Assertion.addMethod("ownPropertyDescriptor", assertOwnPropertyDescriptor);
|
|
2988
2957
|
Assertion.addMethod("haveOwnPropertyDescriptor", assertOwnPropertyDescriptor);
|
|
2989
2958
|
function assertLengthChain() {
|
|
2990
2959
|
flag2(this, "doLength", true);
|
|
2991
2960
|
}
|
|
2992
|
-
__name(assertLengthChain, "assertLengthChain");
|
|
2993
2961
|
function assertLength(n, msg) {
|
|
2994
2962
|
if (msg)
|
|
2995
2963
|
flag2(this, "message", msg);
|
|
@@ -3012,7 +2980,6 @@ function assertLength(n, msg) {
|
|
|
3012
2980
|
itemsCount
|
|
3013
2981
|
);
|
|
3014
2982
|
}
|
|
3015
|
-
__name(assertLength, "assertLength");
|
|
3016
2983
|
Assertion.addChainableMethod("length", assertLength, assertLengthChain);
|
|
3017
2984
|
Assertion.addChainableMethod("lengthOf", assertLength, assertLengthChain);
|
|
3018
2985
|
function assertMatch(re, msg) {
|
|
@@ -3025,7 +2992,6 @@ function assertMatch(re, msg) {
|
|
|
3025
2992
|
"expected #{this} not to match " + re
|
|
3026
2993
|
);
|
|
3027
2994
|
}
|
|
3028
|
-
__name(assertMatch, "assertMatch");
|
|
3029
2995
|
Assertion.addMethod("match", assertMatch);
|
|
3030
2996
|
Assertion.addMethod("matches", assertMatch);
|
|
3031
2997
|
Assertion.addMethod("string", function(str, msg) {
|
|
@@ -3122,7 +3088,6 @@ function assertKeys(keys) {
|
|
|
3122
3088
|
true
|
|
3123
3089
|
);
|
|
3124
3090
|
}
|
|
3125
|
-
__name(assertKeys, "assertKeys");
|
|
3126
3091
|
Assertion.addMethod("keys", assertKeys);
|
|
3127
3092
|
Assertion.addMethod("key", assertKeys);
|
|
3128
3093
|
function assertThrows(errorLike, errMsgMatcher, msg) {
|
|
@@ -3244,7 +3209,6 @@ function assertThrows(errorLike, errMsgMatcher, msg) {
|
|
|
3244
3209
|
}
|
|
3245
3210
|
flag2(this, "object", caughtErr);
|
|
3246
3211
|
}
|
|
3247
|
-
__name(assertThrows, "assertThrows");
|
|
3248
3212
|
Assertion.addMethod("throw", assertThrows);
|
|
3249
3213
|
Assertion.addMethod("throws", assertThrows);
|
|
3250
3214
|
Assertion.addMethod("Throw", assertThrows);
|
|
@@ -3258,7 +3222,6 @@ function respondTo(method, msg) {
|
|
|
3258
3222
|
"expected #{this} to not respond to " + inspect2(method)
|
|
3259
3223
|
);
|
|
3260
3224
|
}
|
|
3261
|
-
__name(respondTo, "respondTo");
|
|
3262
3225
|
Assertion.addMethod("respondTo", respondTo);
|
|
3263
3226
|
Assertion.addMethod("respondsTo", respondTo);
|
|
3264
3227
|
Assertion.addProperty("itself", function() {
|
|
@@ -3277,7 +3240,6 @@ function satisfy(matcher, msg) {
|
|
|
3277
3240
|
result
|
|
3278
3241
|
);
|
|
3279
3242
|
}
|
|
3280
|
-
__name(satisfy, "satisfy");
|
|
3281
3243
|
Assertion.addMethod("satisfy", satisfy);
|
|
3282
3244
|
Assertion.addMethod("satisfies", satisfy);
|
|
3283
3245
|
function closeTo(expected, delta, msg) {
|
|
@@ -3303,15 +3265,14 @@ function closeTo(expected, delta, msg) {
|
|
|
3303
3265
|
);
|
|
3304
3266
|
}
|
|
3305
3267
|
new Assertion(expected, flagMsg, ssfi, true).is.numeric;
|
|
3306
|
-
const abs =
|
|
3307
|
-
const strip =
|
|
3268
|
+
const abs = (x) => x < 0n ? -x : x;
|
|
3269
|
+
const strip = (number) => parseFloat(parseFloat(number).toPrecision(12));
|
|
3308
3270
|
this.assert(
|
|
3309
3271
|
strip(abs(obj - expected)) <= delta,
|
|
3310
3272
|
"expected #{this} to be close to " + expected + " +/- " + delta,
|
|
3311
3273
|
"expected #{this} not to be close to " + expected + " +/- " + delta
|
|
3312
3274
|
);
|
|
3313
3275
|
}
|
|
3314
|
-
__name(closeTo, "closeTo");
|
|
3315
3276
|
Assertion.addMethod("closeTo", closeTo);
|
|
3316
3277
|
Assertion.addMethod("approximately", closeTo);
|
|
3317
3278
|
function isSubsetOf(_subset, _superset, cmp, contains, ordered) {
|
|
@@ -3342,7 +3303,6 @@ function isSubsetOf(_subset, _superset, cmp, contains, ordered) {
|
|
|
3342
3303
|
});
|
|
3343
3304
|
});
|
|
3344
3305
|
}
|
|
3345
|
-
__name(isSubsetOf, "isSubsetOf");
|
|
3346
3306
|
Assertion.addMethod("members", function(subset, msg) {
|
|
3347
3307
|
if (msg)
|
|
3348
3308
|
flag2(this, "message", msg);
|
|
@@ -3419,7 +3379,6 @@ function oneOf(list, msg) {
|
|
|
3419
3379
|
}
|
|
3420
3380
|
}
|
|
3421
3381
|
}
|
|
3422
|
-
__name(oneOf, "oneOf");
|
|
3423
3382
|
Assertion.addMethod("oneOf", oneOf);
|
|
3424
3383
|
function assertChanges(subject, prop, msg) {
|
|
3425
3384
|
if (msg)
|
|
@@ -3448,7 +3407,6 @@ function assertChanges(subject, prop, msg) {
|
|
|
3448
3407
|
"expected " + msgObj + " to not change"
|
|
3449
3408
|
);
|
|
3450
3409
|
}
|
|
3451
|
-
__name(assertChanges, "assertChanges");
|
|
3452
3410
|
Assertion.addMethod("change", assertChanges);
|
|
3453
3411
|
Assertion.addMethod("changes", assertChanges);
|
|
3454
3412
|
function assertIncreases(subject, prop, msg) {
|
|
@@ -3479,7 +3437,6 @@ function assertIncreases(subject, prop, msg) {
|
|
|
3479
3437
|
"expected " + msgObj + " to not increase"
|
|
3480
3438
|
);
|
|
3481
3439
|
}
|
|
3482
|
-
__name(assertIncreases, "assertIncreases");
|
|
3483
3440
|
Assertion.addMethod("increase", assertIncreases);
|
|
3484
3441
|
Assertion.addMethod("increases", assertIncreases);
|
|
3485
3442
|
function assertDecreases(subject, prop, msg) {
|
|
@@ -3510,7 +3467,6 @@ function assertDecreases(subject, prop, msg) {
|
|
|
3510
3467
|
"expected " + msgObj + " to not decrease"
|
|
3511
3468
|
);
|
|
3512
3469
|
}
|
|
3513
|
-
__name(assertDecreases, "assertDecreases");
|
|
3514
3470
|
Assertion.addMethod("decrease", assertDecreases);
|
|
3515
3471
|
Assertion.addMethod("decreases", assertDecreases);
|
|
3516
3472
|
function assertDelta(delta, msg) {
|
|
@@ -3533,7 +3489,6 @@ function assertDelta(delta, msg) {
|
|
|
3533
3489
|
"expected " + msgObj + " to not " + behavior + " by " + delta
|
|
3534
3490
|
);
|
|
3535
3491
|
}
|
|
3536
|
-
__name(assertDelta, "assertDelta");
|
|
3537
3492
|
Assertion.addMethod("by", assertDelta);
|
|
3538
3493
|
Assertion.addProperty("extensible", function() {
|
|
3539
3494
|
let obj = flag2(this, "object");
|
|
@@ -3612,7 +3567,6 @@ function compareSubset(expected, actual) {
|
|
|
3612
3567
|
return actualValue === expectedValue;
|
|
3613
3568
|
});
|
|
3614
3569
|
}
|
|
3615
|
-
__name(compareSubset, "compareSubset");
|
|
3616
3570
|
Assertion.addMethod("containSubset", function(expected) {
|
|
3617
3571
|
const actual = flag(this, "object");
|
|
3618
3572
|
const showDiff = config.showDiff;
|
|
@@ -3625,10 +3579,11 @@ Assertion.addMethod("containSubset", function(expected) {
|
|
|
3625
3579
|
showDiff
|
|
3626
3580
|
);
|
|
3627
3581
|
});
|
|
3582
|
+
|
|
3583
|
+
// node_modules/chai/lib/chai/interface/expect.js
|
|
3628
3584
|
function expect(val, message) {
|
|
3629
3585
|
return new Assertion(val, message);
|
|
3630
3586
|
}
|
|
3631
|
-
__name(expect, "expect");
|
|
3632
3587
|
expect.fail = function(actual, expected, message, operator) {
|
|
3633
3588
|
if (arguments.length < 2) {
|
|
3634
3589
|
message = actual;
|
|
@@ -3645,81 +3600,12 @@ expect.fail = function(actual, expected, message, operator) {
|
|
|
3645
3600
|
expect.fail
|
|
3646
3601
|
);
|
|
3647
3602
|
};
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
Should: () => Should,
|
|
3651
|
-
should: () => should
|
|
3652
|
-
});
|
|
3653
|
-
function loadShould() {
|
|
3654
|
-
function shouldGetter() {
|
|
3655
|
-
if (this instanceof String || this instanceof Number || this instanceof Boolean || typeof Symbol === "function" && this instanceof Symbol || typeof BigInt === "function" && this instanceof BigInt) {
|
|
3656
|
-
return new Assertion(this.valueOf(), null, shouldGetter);
|
|
3657
|
-
}
|
|
3658
|
-
return new Assertion(this, null, shouldGetter);
|
|
3659
|
-
}
|
|
3660
|
-
__name(shouldGetter, "shouldGetter");
|
|
3661
|
-
function shouldSetter(value) {
|
|
3662
|
-
Object.defineProperty(this, "should", {
|
|
3663
|
-
value,
|
|
3664
|
-
enumerable: true,
|
|
3665
|
-
configurable: true,
|
|
3666
|
-
writable: true
|
|
3667
|
-
});
|
|
3668
|
-
}
|
|
3669
|
-
__name(shouldSetter, "shouldSetter");
|
|
3670
|
-
Object.defineProperty(Object.prototype, "should", {
|
|
3671
|
-
set: shouldSetter,
|
|
3672
|
-
get: shouldGetter,
|
|
3673
|
-
configurable: true
|
|
3674
|
-
});
|
|
3675
|
-
let should2 = {};
|
|
3676
|
-
should2.fail = function(actual, expected, message, operator) {
|
|
3677
|
-
if (arguments.length < 2) {
|
|
3678
|
-
message = actual;
|
|
3679
|
-
actual = void 0;
|
|
3680
|
-
}
|
|
3681
|
-
message = message || "should.fail()";
|
|
3682
|
-
throw new AssertionError(
|
|
3683
|
-
message,
|
|
3684
|
-
{
|
|
3685
|
-
actual,
|
|
3686
|
-
expected,
|
|
3687
|
-
operator
|
|
3688
|
-
},
|
|
3689
|
-
should2.fail
|
|
3690
|
-
);
|
|
3691
|
-
};
|
|
3692
|
-
should2.equal = function(actual, expected, message) {
|
|
3693
|
-
new Assertion(actual, message).to.equal(expected);
|
|
3694
|
-
};
|
|
3695
|
-
should2.Throw = function(fn, errt, errs, msg) {
|
|
3696
|
-
new Assertion(fn, msg).to.Throw(errt, errs);
|
|
3697
|
-
};
|
|
3698
|
-
should2.exist = function(val, msg) {
|
|
3699
|
-
new Assertion(val, msg).to.exist;
|
|
3700
|
-
};
|
|
3701
|
-
should2.not = {};
|
|
3702
|
-
should2.not.equal = function(actual, expected, msg) {
|
|
3703
|
-
new Assertion(actual, msg).to.not.equal(expected);
|
|
3704
|
-
};
|
|
3705
|
-
should2.not.Throw = function(fn, errt, errs, msg) {
|
|
3706
|
-
new Assertion(fn, msg).to.not.Throw(errt, errs);
|
|
3707
|
-
};
|
|
3708
|
-
should2.not.exist = function(val, msg) {
|
|
3709
|
-
new Assertion(val, msg).to.not.exist;
|
|
3710
|
-
};
|
|
3711
|
-
should2["throw"] = should2["Throw"];
|
|
3712
|
-
should2.not["throw"] = should2.not["Throw"];
|
|
3713
|
-
return should2;
|
|
3714
|
-
}
|
|
3715
|
-
__name(loadShould, "loadShould");
|
|
3716
|
-
var should = loadShould;
|
|
3717
|
-
var Should = loadShould;
|
|
3603
|
+
|
|
3604
|
+
// node_modules/chai/lib/chai/interface/assert.js
|
|
3718
3605
|
function assert(express, errmsg) {
|
|
3719
3606
|
let test2 = new Assertion(null, null, assert, true);
|
|
3720
3607
|
test2.assert(express, errmsg, "[ negation message unavailable ]");
|
|
3721
3608
|
}
|
|
3722
|
-
__name(assert, "assert");
|
|
3723
3609
|
assert.fail = function(actual, expected, message, operator) {
|
|
3724
3610
|
if (arguments.length < 2) {
|
|
3725
3611
|
message = actual;
|
|
@@ -4490,25 +4376,6 @@ var aliases = [
|
|
|
4490
4376
|
for (const [name, as] of aliases) {
|
|
4491
4377
|
assert[as] = assert[name];
|
|
4492
4378
|
}
|
|
4493
|
-
var used = [];
|
|
4494
|
-
function use(fn) {
|
|
4495
|
-
const exports = {
|
|
4496
|
-
use,
|
|
4497
|
-
AssertionError,
|
|
4498
|
-
util: utils_exports,
|
|
4499
|
-
config,
|
|
4500
|
-
expect,
|
|
4501
|
-
assert,
|
|
4502
|
-
Assertion,
|
|
4503
|
-
...should_exports
|
|
4504
|
-
};
|
|
4505
|
-
if (!~used.indexOf(fn)) {
|
|
4506
|
-
fn(exports, utils_exports);
|
|
4507
|
-
used.push(fn);
|
|
4508
|
-
}
|
|
4509
|
-
return exports;
|
|
4510
|
-
}
|
|
4511
|
-
__name(use, "use");
|
|
4512
4379
|
|
|
4513
4380
|
// src/lib/pmProxy.test/adapter.ts
|
|
4514
4381
|
var testAdapter = {
|
|
@@ -4540,8 +4407,14 @@ var testAdapter = {
|
|
|
4540
4407
|
)
|
|
4541
4408
|
};
|
|
4542
4409
|
},
|
|
4543
|
-
assertThis: (
|
|
4544
|
-
|
|
4410
|
+
assertThis: (actualResult, expectedResult) => {
|
|
4411
|
+
if (typeof actualResult === "string" && actualResult.startsWith("PASS")) {
|
|
4412
|
+
assert.equal(actualResult, "PASS", "tests.json should be written with correct path and content");
|
|
4413
|
+
} else if (typeof actualResult === "string" && actualResult.startsWith("FAIL")) {
|
|
4414
|
+
assert.fail(`Test failed: ${actualResult}`);
|
|
4415
|
+
} else {
|
|
4416
|
+
assert.equal(actualResult, expectedResult);
|
|
4417
|
+
}
|
|
4545
4418
|
}
|
|
4546
4419
|
};
|
|
4547
4420
|
|
|
@@ -4560,245 +4433,323 @@ export {
|
|
|
4560
4433
|
};
|
|
4561
4434
|
/*! Bundled license information:
|
|
4562
4435
|
|
|
4563
|
-
chai/chai.js:
|
|
4436
|
+
chai/lib/chai/utils/flag.js:
|
|
4564
4437
|
(*!
|
|
4565
4438
|
* Chai - flag utility
|
|
4566
4439
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
4567
4440
|
* MIT Licensed
|
|
4568
4441
|
*)
|
|
4442
|
+
|
|
4443
|
+
chai/lib/chai/utils/test.js:
|
|
4569
4444
|
(*!
|
|
4570
4445
|
* Chai - test utility
|
|
4571
4446
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
4572
4447
|
* MIT Licensed
|
|
4573
4448
|
*)
|
|
4449
|
+
|
|
4450
|
+
chai/lib/chai/utils/expectTypes.js:
|
|
4574
4451
|
(*!
|
|
4575
4452
|
* Chai - expectTypes utility
|
|
4576
4453
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
4577
4454
|
* MIT Licensed
|
|
4578
4455
|
*)
|
|
4456
|
+
|
|
4457
|
+
chai/lib/chai/utils/getActual.js:
|
|
4579
4458
|
(*!
|
|
4580
4459
|
* Chai - getActual utility
|
|
4581
4460
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
4582
4461
|
* MIT Licensed
|
|
4583
4462
|
*)
|
|
4463
|
+
|
|
4464
|
+
chai/lib/chai/utils/objDisplay.js:
|
|
4465
|
+
(*!
|
|
4466
|
+
* Chai - flag utility
|
|
4467
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
4468
|
+
* MIT Licensed
|
|
4469
|
+
*)
|
|
4470
|
+
|
|
4471
|
+
chai/lib/chai/utils/getMessage.js:
|
|
4584
4472
|
(*!
|
|
4585
4473
|
* Chai - message composition utility
|
|
4586
4474
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
4587
4475
|
* MIT Licensed
|
|
4588
4476
|
*)
|
|
4477
|
+
|
|
4478
|
+
chai/lib/chai/utils/transferFlags.js:
|
|
4589
4479
|
(*!
|
|
4590
4480
|
* Chai - transferFlags utility
|
|
4591
4481
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
4592
4482
|
* MIT Licensed
|
|
4593
4483
|
*)
|
|
4484
|
+
|
|
4485
|
+
deep-eql/index.js:
|
|
4486
|
+
(*!
|
|
4487
|
+
* deep-eql
|
|
4488
|
+
* Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>
|
|
4489
|
+
* MIT Licensed
|
|
4490
|
+
*)
|
|
4491
|
+
(*!
|
|
4492
|
+
* Check to see if the MemoizeMap has recorded a result of the two operands
|
|
4493
|
+
*
|
|
4494
|
+
* @param {Mixed} leftHandOperand
|
|
4495
|
+
* @param {Mixed} rightHandOperand
|
|
4496
|
+
* @param {MemoizeMap} memoizeMap
|
|
4497
|
+
* @returns {Boolean|null} result
|
|
4498
|
+
*)
|
|
4499
|
+
(*!
|
|
4500
|
+
* Set the result of the equality into the MemoizeMap
|
|
4501
|
+
*
|
|
4502
|
+
* @param {Mixed} leftHandOperand
|
|
4503
|
+
* @param {Mixed} rightHandOperand
|
|
4504
|
+
* @param {MemoizeMap} memoizeMap
|
|
4505
|
+
* @param {Boolean} result
|
|
4506
|
+
*)
|
|
4507
|
+
(*!
|
|
4508
|
+
* Primary Export
|
|
4509
|
+
*)
|
|
4510
|
+
(*!
|
|
4511
|
+
* The main logic of the `deepEqual` function.
|
|
4512
|
+
*
|
|
4513
|
+
* @param {Mixed} leftHandOperand
|
|
4514
|
+
* @param {Mixed} rightHandOperand
|
|
4515
|
+
* @param {Object} [options] (optional) Additional options
|
|
4516
|
+
* @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.
|
|
4517
|
+
* @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of
|
|
4518
|
+
complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular
|
|
4519
|
+
references to blow the stack.
|
|
4520
|
+
* @return {Boolean} equal match
|
|
4521
|
+
*)
|
|
4522
|
+
(*!
|
|
4523
|
+
* Compare two Regular Expressions for equality.
|
|
4524
|
+
*
|
|
4525
|
+
* @param {RegExp} leftHandOperand
|
|
4526
|
+
* @param {RegExp} rightHandOperand
|
|
4527
|
+
* @return {Boolean} result
|
|
4528
|
+
*)
|
|
4529
|
+
(*!
|
|
4530
|
+
* Compare two Sets/Maps for equality. Faster than other equality functions.
|
|
4531
|
+
*
|
|
4532
|
+
* @param {Set} leftHandOperand
|
|
4533
|
+
* @param {Set} rightHandOperand
|
|
4534
|
+
* @param {Object} [options] (Optional)
|
|
4535
|
+
* @return {Boolean} result
|
|
4536
|
+
*)
|
|
4537
|
+
(*!
|
|
4538
|
+
* Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers.
|
|
4539
|
+
*
|
|
4540
|
+
* @param {Iterable} leftHandOperand
|
|
4541
|
+
* @param {Iterable} rightHandOperand
|
|
4542
|
+
* @param {Object} [options] (Optional)
|
|
4543
|
+
* @return {Boolean} result
|
|
4544
|
+
*)
|
|
4545
|
+
(*!
|
|
4546
|
+
* Simple equality for generator objects such as those returned by generator functions.
|
|
4547
|
+
*
|
|
4548
|
+
* @param {Iterable} leftHandOperand
|
|
4549
|
+
* @param {Iterable} rightHandOperand
|
|
4550
|
+
* @param {Object} [options] (Optional)
|
|
4551
|
+
* @return {Boolean} result
|
|
4552
|
+
*)
|
|
4553
|
+
(*!
|
|
4554
|
+
* Determine if the given object has an @@iterator function.
|
|
4555
|
+
*
|
|
4556
|
+
* @param {Object} target
|
|
4557
|
+
* @return {Boolean} `true` if the object has an @@iterator function.
|
|
4558
|
+
*)
|
|
4559
|
+
(*!
|
|
4560
|
+
* Gets all iterator entries from the given Object. If the Object has no @@iterator function, returns an empty array.
|
|
4561
|
+
* This will consume the iterator - which could have side effects depending on the @@iterator implementation.
|
|
4562
|
+
*
|
|
4563
|
+
* @param {Object} target
|
|
4564
|
+
* @returns {Array} an array of entries from the @@iterator function
|
|
4565
|
+
*)
|
|
4566
|
+
(*!
|
|
4567
|
+
* Gets all entries from a Generator. This will consume the generator - which could have side effects.
|
|
4568
|
+
*
|
|
4569
|
+
* @param {Generator} target
|
|
4570
|
+
* @returns {Array} an array of entries from the Generator.
|
|
4571
|
+
*)
|
|
4572
|
+
(*!
|
|
4573
|
+
* Gets all own and inherited enumerable keys from a target.
|
|
4574
|
+
*
|
|
4575
|
+
* @param {Object} target
|
|
4576
|
+
* @returns {Array} an array of own and inherited enumerable keys from the target.
|
|
4577
|
+
*)
|
|
4578
|
+
(*!
|
|
4579
|
+
* Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of
|
|
4580
|
+
* each key. If any value of the given key is not equal, the function will return false (early).
|
|
4581
|
+
*
|
|
4582
|
+
* @param {Mixed} leftHandOperand
|
|
4583
|
+
* @param {Mixed} rightHandOperand
|
|
4584
|
+
* @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against
|
|
4585
|
+
* @param {Object} [options] (Optional)
|
|
4586
|
+
* @return {Boolean} result
|
|
4587
|
+
*)
|
|
4588
|
+
(*!
|
|
4589
|
+
* Recursively check the equality of two Objects. Once basic sameness has been established it will defer to `deepEqual`
|
|
4590
|
+
* for each enumerable key in the object.
|
|
4591
|
+
*
|
|
4592
|
+
* @param {Mixed} leftHandOperand
|
|
4593
|
+
* @param {Mixed} rightHandOperand
|
|
4594
|
+
* @param {Object} [options] (Optional)
|
|
4595
|
+
* @return {Boolean} result
|
|
4596
|
+
*)
|
|
4597
|
+
(*!
|
|
4598
|
+
* Returns true if the argument is a primitive.
|
|
4599
|
+
*
|
|
4600
|
+
* This intentionally returns true for all objects that can be compared by reference,
|
|
4601
|
+
* including functions and symbols.
|
|
4602
|
+
*
|
|
4603
|
+
* @param {Mixed} value
|
|
4604
|
+
* @return {Boolean} result
|
|
4605
|
+
*)
|
|
4606
|
+
|
|
4607
|
+
chai/lib/chai/assertion.js:
|
|
4594
4608
|
(*!
|
|
4595
4609
|
* chai
|
|
4596
4610
|
* http://chaijs.com
|
|
4597
4611
|
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|
4598
4612
|
* MIT Licensed
|
|
4599
4613
|
*)
|
|
4614
|
+
|
|
4615
|
+
chai/lib/chai/utils/isProxyEnabled.js:
|
|
4600
4616
|
(*!
|
|
4601
4617
|
* Chai - isProxyEnabled helper
|
|
4602
4618
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
4603
4619
|
* MIT Licensed
|
|
4604
4620
|
*)
|
|
4621
|
+
|
|
4622
|
+
chai/lib/chai/utils/addProperty.js:
|
|
4605
4623
|
(*!
|
|
4606
4624
|
* Chai - addProperty utility
|
|
4607
4625
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
4608
4626
|
* MIT Licensed
|
|
4609
4627
|
*)
|
|
4628
|
+
|
|
4629
|
+
chai/lib/chai/utils/addLengthGuard.js:
|
|
4610
4630
|
(*!
|
|
4611
4631
|
* Chai - addLengthGuard utility
|
|
4612
4632
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
4613
4633
|
* MIT Licensed
|
|
4614
4634
|
*)
|
|
4635
|
+
|
|
4636
|
+
chai/lib/chai/utils/getProperties.js:
|
|
4615
4637
|
(*!
|
|
4616
4638
|
* Chai - getProperties utility
|
|
4617
4639
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
4618
4640
|
* MIT Licensed
|
|
4619
4641
|
*)
|
|
4642
|
+
|
|
4643
|
+
chai/lib/chai/utils/proxify.js:
|
|
4620
4644
|
(*!
|
|
4621
4645
|
* Chai - proxify utility
|
|
4622
4646
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
4623
4647
|
* MIT Licensed
|
|
4624
4648
|
*)
|
|
4649
|
+
|
|
4650
|
+
chai/lib/chai/utils/addMethod.js:
|
|
4625
4651
|
(*!
|
|
4626
4652
|
* Chai - addMethod utility
|
|
4627
4653
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
4628
4654
|
* MIT Licensed
|
|
4629
4655
|
*)
|
|
4656
|
+
|
|
4657
|
+
chai/lib/chai/utils/overwriteProperty.js:
|
|
4630
4658
|
(*!
|
|
4631
4659
|
* Chai - overwriteProperty utility
|
|
4632
4660
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
4633
4661
|
* MIT Licensed
|
|
4634
4662
|
*)
|
|
4663
|
+
|
|
4664
|
+
chai/lib/chai/utils/overwriteMethod.js:
|
|
4635
4665
|
(*!
|
|
4636
4666
|
* Chai - overwriteMethod utility
|
|
4637
4667
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
4638
4668
|
* MIT Licensed
|
|
4639
4669
|
*)
|
|
4670
|
+
|
|
4671
|
+
chai/lib/chai/utils/addChainableMethod.js:
|
|
4640
4672
|
(*!
|
|
4641
4673
|
* Chai - addChainingMethod utility
|
|
4642
4674
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
4643
4675
|
* MIT Licensed
|
|
4644
4676
|
*)
|
|
4677
|
+
|
|
4678
|
+
chai/lib/chai/utils/overwriteChainableMethod.js:
|
|
4645
4679
|
(*!
|
|
4646
4680
|
* Chai - overwriteChainableMethod utility
|
|
4647
4681
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
4648
4682
|
* MIT Licensed
|
|
4649
4683
|
*)
|
|
4684
|
+
|
|
4685
|
+
chai/lib/chai/utils/compareByInspect.js:
|
|
4650
4686
|
(*!
|
|
4651
4687
|
* Chai - compareByInspect utility
|
|
4652
4688
|
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
|
4653
4689
|
* MIT Licensed
|
|
4654
4690
|
*)
|
|
4691
|
+
|
|
4692
|
+
chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js:
|
|
4655
4693
|
(*!
|
|
4656
4694
|
* Chai - getOwnEnumerablePropertySymbols utility
|
|
4657
4695
|
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
|
4658
4696
|
* MIT Licensed
|
|
4659
4697
|
*)
|
|
4698
|
+
|
|
4699
|
+
chai/lib/chai/utils/getOwnEnumerableProperties.js:
|
|
4660
4700
|
(*!
|
|
4661
4701
|
* Chai - getOwnEnumerableProperties utility
|
|
4662
4702
|
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
|
4663
4703
|
* MIT Licensed
|
|
4664
4704
|
*)
|
|
4705
|
+
|
|
4706
|
+
chai/lib/chai/utils/isNaN.js:
|
|
4665
4707
|
(*!
|
|
4666
4708
|
* Chai - isNaN utility
|
|
4667
4709
|
* Copyright(c) 2012-2015 Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
|
|
4668
4710
|
* MIT Licensed
|
|
4669
4711
|
*)
|
|
4712
|
+
|
|
4713
|
+
chai/lib/chai/utils/index.js:
|
|
4670
4714
|
(*!
|
|
4671
4715
|
* chai
|
|
4672
4716
|
* Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com>
|
|
4673
4717
|
* MIT Licensed
|
|
4674
4718
|
*)
|
|
4719
|
+
|
|
4720
|
+
chai/lib/chai/core/assertions.js:
|
|
4721
|
+
(*!
|
|
4722
|
+
* chai
|
|
4723
|
+
* http://chaijs.com
|
|
4724
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|
4725
|
+
* MIT Licensed
|
|
4726
|
+
*)
|
|
4727
|
+
|
|
4728
|
+
chai/lib/chai/interface/expect.js:
|
|
4729
|
+
(*!
|
|
4730
|
+
* chai
|
|
4731
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|
4732
|
+
* MIT Licensed
|
|
4733
|
+
*)
|
|
4734
|
+
|
|
4735
|
+
chai/lib/chai/interface/should.js:
|
|
4736
|
+
(*!
|
|
4737
|
+
* chai
|
|
4738
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|
4739
|
+
* MIT Licensed
|
|
4740
|
+
*)
|
|
4741
|
+
|
|
4742
|
+
chai/lib/chai/interface/assert.js:
|
|
4743
|
+
(*!
|
|
4744
|
+
* chai
|
|
4745
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|
4746
|
+
* MIT Licensed
|
|
4747
|
+
*)
|
|
4748
|
+
|
|
4749
|
+
chai/lib/chai.js:
|
|
4675
4750
|
(*!
|
|
4676
4751
|
* chai
|
|
4677
4752
|
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|
4678
4753
|
* MIT Licensed
|
|
4679
4754
|
*)
|
|
4680
|
-
(*! Bundled license information:
|
|
4681
|
-
|
|
4682
|
-
deep-eql/index.js:
|
|
4683
|
-
(*!
|
|
4684
|
-
* deep-eql
|
|
4685
|
-
* Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>
|
|
4686
|
-
* MIT Licensed
|
|
4687
|
-
*)
|
|
4688
|
-
(*!
|
|
4689
|
-
* Check to see if the MemoizeMap has recorded a result of the two operands
|
|
4690
|
-
*
|
|
4691
|
-
* @param {Mixed} leftHandOperand
|
|
4692
|
-
* @param {Mixed} rightHandOperand
|
|
4693
|
-
* @param {MemoizeMap} memoizeMap
|
|
4694
|
-
* @returns {Boolean|null} result
|
|
4695
|
-
*)
|
|
4696
|
-
(*!
|
|
4697
|
-
* Set the result of the equality into the MemoizeMap
|
|
4698
|
-
*
|
|
4699
|
-
* @param {Mixed} leftHandOperand
|
|
4700
|
-
* @param {Mixed} rightHandOperand
|
|
4701
|
-
* @param {MemoizeMap} memoizeMap
|
|
4702
|
-
* @param {Boolean} result
|
|
4703
|
-
*)
|
|
4704
|
-
(*!
|
|
4705
|
-
* Primary Export
|
|
4706
|
-
*)
|
|
4707
|
-
(*!
|
|
4708
|
-
* The main logic of the `deepEqual` function.
|
|
4709
|
-
*
|
|
4710
|
-
* @param {Mixed} leftHandOperand
|
|
4711
|
-
* @param {Mixed} rightHandOperand
|
|
4712
|
-
* @param {Object} [options] (optional) Additional options
|
|
4713
|
-
* @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.
|
|
4714
|
-
* @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of
|
|
4715
|
-
complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular
|
|
4716
|
-
references to blow the stack.
|
|
4717
|
-
* @return {Boolean} equal match
|
|
4718
|
-
*)
|
|
4719
|
-
(*!
|
|
4720
|
-
* Compare two Regular Expressions for equality.
|
|
4721
|
-
*
|
|
4722
|
-
* @param {RegExp} leftHandOperand
|
|
4723
|
-
* @param {RegExp} rightHandOperand
|
|
4724
|
-
* @return {Boolean} result
|
|
4725
|
-
*)
|
|
4726
|
-
(*!
|
|
4727
|
-
* Compare two Sets/Maps for equality. Faster than other equality functions.
|
|
4728
|
-
*
|
|
4729
|
-
* @param {Set} leftHandOperand
|
|
4730
|
-
* @param {Set} rightHandOperand
|
|
4731
|
-
* @param {Object} [options] (Optional)
|
|
4732
|
-
* @return {Boolean} result
|
|
4733
|
-
*)
|
|
4734
|
-
(*!
|
|
4735
|
-
* Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers.
|
|
4736
|
-
*
|
|
4737
|
-
* @param {Iterable} leftHandOperand
|
|
4738
|
-
* @param {Iterable} rightHandOperand
|
|
4739
|
-
* @param {Object} [options] (Optional)
|
|
4740
|
-
* @return {Boolean} result
|
|
4741
|
-
*)
|
|
4742
|
-
(*!
|
|
4743
|
-
* Simple equality for generator objects such as those returned by generator functions.
|
|
4744
|
-
*
|
|
4745
|
-
* @param {Iterable} leftHandOperand
|
|
4746
|
-
* @param {Iterable} rightHandOperand
|
|
4747
|
-
* @param {Object} [options] (Optional)
|
|
4748
|
-
* @return {Boolean} result
|
|
4749
|
-
*)
|
|
4750
|
-
(*!
|
|
4751
|
-
* Determine if the given object has an @@iterator function.
|
|
4752
|
-
*
|
|
4753
|
-
* @param {Object} target
|
|
4754
|
-
* @return {Boolean} `true` if the object has an @@iterator function.
|
|
4755
|
-
*)
|
|
4756
|
-
(*!
|
|
4757
|
-
* Gets all iterator entries from the given Object. If the Object has no @@iterator function, returns an empty array.
|
|
4758
|
-
* This will consume the iterator - which could have side effects depending on the @@iterator implementation.
|
|
4759
|
-
*
|
|
4760
|
-
* @param {Object} target
|
|
4761
|
-
* @returns {Array} an array of entries from the @@iterator function
|
|
4762
|
-
*)
|
|
4763
|
-
(*!
|
|
4764
|
-
* Gets all entries from a Generator. This will consume the generator - which could have side effects.
|
|
4765
|
-
*
|
|
4766
|
-
* @param {Generator} target
|
|
4767
|
-
* @returns {Array} an array of entries from the Generator.
|
|
4768
|
-
*)
|
|
4769
|
-
(*!
|
|
4770
|
-
* Gets all own and inherited enumerable keys from a target.
|
|
4771
|
-
*
|
|
4772
|
-
* @param {Object} target
|
|
4773
|
-
* @returns {Array} an array of own and inherited enumerable keys from the target.
|
|
4774
|
-
*)
|
|
4775
|
-
(*!
|
|
4776
|
-
* Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of
|
|
4777
|
-
* each key. If any value of the given key is not equal, the function will return false (early).
|
|
4778
|
-
*
|
|
4779
|
-
* @param {Mixed} leftHandOperand
|
|
4780
|
-
* @param {Mixed} rightHandOperand
|
|
4781
|
-
* @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against
|
|
4782
|
-
* @param {Object} [options] (Optional)
|
|
4783
|
-
* @return {Boolean} result
|
|
4784
|
-
*)
|
|
4785
|
-
(*!
|
|
4786
|
-
* Recursively check the equality of two Objects. Once basic sameness has been established it will defer to `deepEqual`
|
|
4787
|
-
* for each enumerable key in the object.
|
|
4788
|
-
*
|
|
4789
|
-
* @param {Mixed} leftHandOperand
|
|
4790
|
-
* @param {Mixed} rightHandOperand
|
|
4791
|
-
* @param {Object} [options] (Optional)
|
|
4792
|
-
* @return {Boolean} result
|
|
4793
|
-
*)
|
|
4794
|
-
(*!
|
|
4795
|
-
* Returns true if the argument is a primitive.
|
|
4796
|
-
*
|
|
4797
|
-
* This intentionally returns true for all objects that can be compared by reference,
|
|
4798
|
-
* including functions and symbols.
|
|
4799
|
-
*
|
|
4800
|
-
* @param {Mixed} value
|
|
4801
|
-
* @return {Boolean} result
|
|
4802
|
-
*)
|
|
4803
|
-
*)
|
|
4804
4755
|
*/
|