@goast/kotlin 0.4.0 → 0.4.2-beta1
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/LICENSE +21 -21
- package/README.md +45 -45
- package/assets/client/okhttp3/ApiClient.kt +250 -249
- package/esm/src/assets.js +1 -1
- package/esm/src/ast/references/okhttp3.js +1 -1
- package/esm/src/generators/services/okhttp3-clients/okhttp3-client-generator.d.ts.map +1 -1
- package/esm/src/generators/services/okhttp3-clients/okhttp3-client-generator.js +29 -27
- package/esm/src/generators/services/spring-controllers/spring-controller-generator.d.ts.map +1 -1
- package/esm/src/generators/services/spring-controllers/spring-controller-generator.js +0 -13
- package/package.json +2 -2
- package/script/src/assets.js +1 -1
- package/script/src/ast/references/okhttp3.js +1 -1
- package/script/src/generators/services/okhttp3-clients/okhttp3-client-generator.d.ts.map +1 -1
- package/script/src/generators/services/okhttp3-clients/okhttp3-client-generator.js +29 -27
- package/script/src/generators/services/spring-controllers/spring-controller-generator.d.ts.map +1 -1
- package/script/src/generators/services/spring-controllers/spring-controller-generator.js +0 -13
- package/esm/_dnt.test_polyfills.d.ts +0 -18
- package/esm/_dnt.test_polyfills.d.ts.map +0 -1
- package/esm/_dnt.test_polyfills.js +0 -17
- package/esm/_dnt.test_shims.d.ts +0 -6
- package/esm/_dnt.test_shims.d.ts.map +0 -1
- package/esm/_dnt.test_shims.js +0 -61
- package/esm/deps/jsr.io/@std/assert/1.0.6/assertion_error.d.ts +0 -26
- package/esm/deps/jsr.io/@std/assert/1.0.6/assertion_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/assertion_error.js +0 -30
- package/esm/deps/jsr.io/@std/assert/1.0.6/equal.d.ts +0 -17
- package/esm/deps/jsr.io/@std/assert/1.0.6/equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/equal.js +0 -136
- package/esm/deps/jsr.io/@std/assert/1.0.6/equals.d.ts +0 -22
- package/esm/deps/jsr.io/@std/assert/1.0.6/equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/equals.js +0 -45
- package/esm/deps/jsr.io/@std/assert/1.0.6/false.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.6/false.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/false.js +0 -22
- package/esm/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts +0 -23
- package/esm/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/instance_of.js +0 -53
- package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts +0 -25
- package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.js +0 -54
- package/esm/deps/jsr.io/@std/assert/1.0.6/match.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.6/match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/match.js +0 -26
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts +0 -20
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_instance_of.js +0 -29
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_match.js +0 -26
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts +0 -23
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.js +0 -32
- package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts +0 -28
- package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.js +0 -159
- package/esm/deps/jsr.io/@std/assert/1.0.6/rejects.d.ts +0 -42
- package/esm/deps/jsr.io/@std/assert/1.0.6/rejects.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/rejects.js +0 -53
- package/esm/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts +0 -24
- package/esm/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/strict_equals.js +0 -57
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_equals.d.ts +0 -20
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_equals.js +0 -29
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.d.ts +0 -17
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.js +0 -26
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assertion.d.ts +0 -3
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assertion.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assertion.js +0 -9
- package/esm/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.d.ts +0 -36
- package/esm/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.js +0 -124
- package/esm/deps/jsr.io/@std/expect/1.0.5/_build_message.d.ts +0 -6
- package/esm/deps/jsr.io/@std/expect/1.0.5/_build_message.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_build_message.js +0 -29
- package/esm/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.d.ts +0 -4
- package/esm/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.js +0 -11
- package/esm/deps/jsr.io/@std/expect/1.0.5/_equal.d.ts +0 -9
- package/esm/deps/jsr.io/@std/expect/1.0.5/_equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_equal.js +0 -191
- package/esm/deps/jsr.io/@std/expect/1.0.5/_extend.d.ts +0 -4
- package/esm/deps/jsr.io/@std/expect/1.0.5/_extend.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_extend.js +0 -11
- package/esm/deps/jsr.io/@std/expect/1.0.5/_inspect_args.d.ts +0 -3
- package/esm/deps/jsr.io/@std/expect/1.0.5/_inspect_args.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_inspect_args.js +0 -12
- package/esm/deps/jsr.io/@std/expect/1.0.5/_matchers.d.ts +0 -34
- package/esm/deps/jsr.io/@std/expect/1.0.5/_matchers.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_matchers.js +0 -564
- package/esm/deps/jsr.io/@std/expect/1.0.5/_mock_util.d.ts +0 -11
- package/esm/deps/jsr.io/@std/expect/1.0.5/_mock_util.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_mock_util.js +0 -10
- package/esm/deps/jsr.io/@std/expect/1.0.5/_types.d.ts +0 -838
- package/esm/deps/jsr.io/@std/expect/1.0.5/_types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_types.js +0 -3
- package/esm/deps/jsr.io/@std/expect/1.0.5/_utils.d.ts +0 -8
- package/esm/deps/jsr.io/@std/expect/1.0.5/_utils.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_utils.js +0 -159
- package/esm/deps/jsr.io/@std/expect/1.0.5/expect.d.ts +0 -51
- package/esm/deps/jsr.io/@std/expect/1.0.5/expect.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/expect.js +0 -425
- package/esm/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts +0 -75
- package/esm/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.4/assertion_state.js +0 -101
- package/esm/deps/jsr.io/@std/internal/1.0.4/build_message.d.ts +0 -82
- package/esm/deps/jsr.io/@std/internal/1.0.4/build_message.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.4/build_message.js +0 -111
- package/esm/deps/jsr.io/@std/internal/1.0.4/diff.d.ts +0 -140
- package/esm/deps/jsr.io/@std/internal/1.0.4/diff.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.4/diff.js +0 -277
- package/esm/deps/jsr.io/@std/internal/1.0.4/diff_str.d.ts +0 -99
- package/esm/deps/jsr.io/@std/internal/1.0.4/diff_str.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.4/diff_str.js +0 -180
- package/esm/deps/jsr.io/@std/internal/1.0.4/format.d.ts +0 -2
- package/esm/deps/jsr.io/@std/internal/1.0.4/format.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.4/format.js +0 -37
- package/esm/deps/jsr.io/@std/internal/1.0.4/styles.d.ts +0 -159
- package/esm/deps/jsr.io/@std/internal/1.0.4/styles.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.4/styles.js +0 -207
- package/esm/deps/jsr.io/@std/internal/1.0.4/types.d.ts +0 -16
- package/esm/deps/jsr.io/@std/internal/1.0.4/types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.4/types.js +0 -2
- package/esm/deps/jsr.io/@std/testing/1.0.3/_test_suite.d.ts +0 -74
- package/esm/deps/jsr.io/@std/testing/1.0.3/_test_suite.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/testing/1.0.3/_test_suite.js +0 -340
- package/esm/deps/jsr.io/@std/testing/1.0.3/bdd.d.ts +0 -731
- package/esm/deps/jsr.io/@std/testing/1.0.3/bdd.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/testing/1.0.3/bdd.js +0 -576
- package/esm/deps/jsr.io/@std/testing/1.0.3/mock.d.ts +0 -674
- package/esm/deps/jsr.io/@std/testing/1.0.3/mock.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/testing/1.0.3/mock.js +0 -1117
- package/esm/src/ast/nodes/annotation.test.d.ts +0 -2
- package/esm/src/ast/nodes/annotation.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/annotation.test.js +0 -56
- package/esm/src/ast/nodes/argument.test.d.ts +0 -2
- package/esm/src/ast/nodes/argument.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/argument.test.js +0 -33
- package/esm/src/ast/nodes/call.test.d.ts +0 -2
- package/esm/src/ast/nodes/call.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/call.test.js +0 -35
- package/esm/src/ast/nodes/class.test.d.ts +0 -2
- package/esm/src/ast/nodes/class.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/class.test.js +0 -219
- package/esm/src/ast/nodes/constructor.test.d.ts +0 -2
- package/esm/src/ast/nodes/constructor.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/constructor.test.js +0 -139
- package/esm/src/ast/nodes/doc-tag.test.d.ts +0 -2
- package/esm/src/ast/nodes/doc-tag.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/doc-tag.test.js +0 -67
- package/esm/src/ast/nodes/doc.test.d.ts +0 -2
- package/esm/src/ast/nodes/doc.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/doc.test.js +0 -33
- package/esm/src/ast/nodes/enum-value.test.d.ts +0 -2
- package/esm/src/ast/nodes/enum-value.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/enum-value.test.js +0 -115
- package/esm/src/ast/nodes/enum.test.d.ts +0 -2
- package/esm/src/ast/nodes/enum.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/enum.test.js +0 -129
- package/esm/src/ast/nodes/function.test.d.ts +0 -2
- package/esm/src/ast/nodes/function.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/function.test.js +0 -160
- package/esm/src/ast/nodes/generic-parameter.test.d.ts +0 -2
- package/esm/src/ast/nodes/generic-parameter.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/generic-parameter.test.js +0 -49
- package/esm/src/ast/nodes/init-block.test.d.ts +0 -2
- package/esm/src/ast/nodes/init-block.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/init-block.test.js +0 -28
- package/esm/src/ast/nodes/interface.test.d.ts +0 -2
- package/esm/src/ast/nodes/interface.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/interface.test.js +0 -121
- package/esm/src/ast/nodes/object.test.d.ts +0 -2
- package/esm/src/ast/nodes/object.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/object.test.js +0 -78
- package/esm/src/ast/nodes/parameter.test.d.ts +0 -2
- package/esm/src/ast/nodes/parameter.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/parameter.test.js +0 -152
- package/esm/src/ast/nodes/property.test.d.ts +0 -2
- package/esm/src/ast/nodes/property.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/property.test.js +0 -206
- package/esm/src/ast/nodes/reference.test.d.ts +0 -2
- package/esm/src/ast/nodes/reference.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/reference.test.js +0 -36
- package/esm/src/ast/nodes/string.test.d.ts +0 -2
- package/esm/src/ast/nodes/string.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/string.test.js +0 -48
- package/esm/src/import-collection.test.d.ts +0 -2
- package/esm/src/import-collection.test.d.ts.map +0 -1
- package/esm/src/import-collection.test.js +0 -99
- package/esm/tests/openapi-models.test.d.ts +0 -2
- package/esm/tests/openapi-models.test.d.ts.map +0 -1
- package/esm/tests/openapi-models.test.js +0 -45
- package/script/_dnt.test_polyfills.d.ts +0 -18
- package/script/_dnt.test_polyfills.d.ts.map +0 -1
- package/script/_dnt.test_polyfills.js +0 -18
- package/script/_dnt.test_shims.d.ts +0 -6
- package/script/_dnt.test_shims.d.ts.map +0 -1
- package/script/_dnt.test_shims.js +0 -65
- package/script/deps/jsr.io/@std/assert/1.0.6/assertion_error.d.ts +0 -26
- package/script/deps/jsr.io/@std/assert/1.0.6/assertion_error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/assertion_error.js +0 -34
- package/script/deps/jsr.io/@std/assert/1.0.6/equal.d.ts +0 -17
- package/script/deps/jsr.io/@std/assert/1.0.6/equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/equal.js +0 -139
- package/script/deps/jsr.io/@std/assert/1.0.6/equals.d.ts +0 -22
- package/script/deps/jsr.io/@std/assert/1.0.6/equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/equals.js +0 -48
- package/script/deps/jsr.io/@std/assert/1.0.6/false.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.6/false.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/false.js +0 -25
- package/script/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts +0 -23
- package/script/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/instance_of.js +0 -56
- package/script/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts +0 -25
- package/script/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/is_error.js +0 -57
- package/script/deps/jsr.io/@std/assert/1.0.6/match.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.6/match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/match.js +0 -29
- package/script/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts +0 -20
- package/script/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/not_instance_of.js +0 -32
- package/script/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/not_match.js +0 -29
- package/script/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts +0 -23
- package/script/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.js +0 -35
- package/script/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts +0 -28
- package/script/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/object_match.js +0 -162
- package/script/deps/jsr.io/@std/assert/1.0.6/rejects.d.ts +0 -42
- package/script/deps/jsr.io/@std/assert/1.0.6/rejects.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/rejects.js +0 -56
- package/script/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts +0 -24
- package/script/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/strict_equals.js +0 -60
- package/script/deps/jsr.io/@std/expect/1.0.5/_assert_equals.d.ts +0 -20
- package/script/deps/jsr.io/@std/expect/1.0.5/_assert_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_assert_equals.js +0 -32
- package/script/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.d.ts +0 -17
- package/script/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.js +0 -29
- package/script/deps/jsr.io/@std/expect/1.0.5/_assertion.d.ts +0 -3
- package/script/deps/jsr.io/@std/expect/1.0.5/_assertion.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_assertion.js +0 -13
- package/script/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.d.ts +0 -36
- package/script/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.js +0 -140
- package/script/deps/jsr.io/@std/expect/1.0.5/_build_message.d.ts +0 -6
- package/script/deps/jsr.io/@std/expect/1.0.5/_build_message.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_build_message.js +0 -33
- package/script/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.d.ts +0 -4
- package/script/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.js +0 -15
- package/script/deps/jsr.io/@std/expect/1.0.5/_equal.d.ts +0 -9
- package/script/deps/jsr.io/@std/expect/1.0.5/_equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_equal.js +0 -194
- package/script/deps/jsr.io/@std/expect/1.0.5/_extend.d.ts +0 -4
- package/script/deps/jsr.io/@std/expect/1.0.5/_extend.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_extend.js +0 -15
- package/script/deps/jsr.io/@std/expect/1.0.5/_inspect_args.d.ts +0 -3
- package/script/deps/jsr.io/@std/expect/1.0.5/_inspect_args.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_inspect_args.js +0 -17
- package/script/deps/jsr.io/@std/expect/1.0.5/_matchers.d.ts +0 -34
- package/script/deps/jsr.io/@std/expect/1.0.5/_matchers.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_matchers.js +0 -598
- package/script/deps/jsr.io/@std/expect/1.0.5/_mock_util.d.ts +0 -11
- package/script/deps/jsr.io/@std/expect/1.0.5/_mock_util.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_mock_util.js +0 -14
- package/script/deps/jsr.io/@std/expect/1.0.5/_types.d.ts +0 -838
- package/script/deps/jsr.io/@std/expect/1.0.5/_types.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_types.js +0 -4
- package/script/deps/jsr.io/@std/expect/1.0.5/_utils.d.ts +0 -8
- package/script/deps/jsr.io/@std/expect/1.0.5/_utils.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_utils.js +0 -166
- package/script/deps/jsr.io/@std/expect/1.0.5/expect.d.ts +0 -51
- package/script/deps/jsr.io/@std/expect/1.0.5/expect.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/expect.js +0 -429
- package/script/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts +0 -75
- package/script/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.4/assertion_state.js +0 -106
- package/script/deps/jsr.io/@std/internal/1.0.4/build_message.d.ts +0 -82
- package/script/deps/jsr.io/@std/internal/1.0.4/build_message.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.4/build_message.js +0 -116
- package/script/deps/jsr.io/@std/internal/1.0.4/diff.d.ts +0 -140
- package/script/deps/jsr.io/@std/internal/1.0.4/diff.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.4/diff.js +0 -284
- package/script/deps/jsr.io/@std/internal/1.0.4/diff_str.d.ts +0 -99
- package/script/deps/jsr.io/@std/internal/1.0.4/diff_str.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.4/diff_str.js +0 -186
- package/script/deps/jsr.io/@std/internal/1.0.4/format.d.ts +0 -2
- package/script/deps/jsr.io/@std/internal/1.0.4/format.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.4/format.js +0 -41
- package/script/deps/jsr.io/@std/internal/1.0.4/styles.d.ts +0 -159
- package/script/deps/jsr.io/@std/internal/1.0.4/styles.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.4/styles.js +0 -220
- package/script/deps/jsr.io/@std/internal/1.0.4/types.d.ts +0 -16
- package/script/deps/jsr.io/@std/internal/1.0.4/types.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.4/types.js +0 -3
- package/script/deps/jsr.io/@std/testing/1.0.3/_test_suite.d.ts +0 -74
- package/script/deps/jsr.io/@std/testing/1.0.3/_test_suite.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/testing/1.0.3/_test_suite.js +0 -345
- package/script/deps/jsr.io/@std/testing/1.0.3/bdd.d.ts +0 -731
- package/script/deps/jsr.io/@std/testing/1.0.3/bdd.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/testing/1.0.3/bdd.js +0 -587
- package/script/deps/jsr.io/@std/testing/1.0.3/mock.d.ts +0 -674
- package/script/deps/jsr.io/@std/testing/1.0.3/mock.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/testing/1.0.3/mock.js +0 -1136
- package/script/src/ast/nodes/annotation.test.d.ts +0 -2
- package/script/src/ast/nodes/annotation.test.d.ts.map +0 -1
- package/script/src/ast/nodes/annotation.test.js +0 -58
- package/script/src/ast/nodes/argument.test.d.ts +0 -2
- package/script/src/ast/nodes/argument.test.d.ts.map +0 -1
- package/script/src/ast/nodes/argument.test.js +0 -35
- package/script/src/ast/nodes/call.test.d.ts +0 -2
- package/script/src/ast/nodes/call.test.d.ts.map +0 -1
- package/script/src/ast/nodes/call.test.js +0 -37
- package/script/src/ast/nodes/class.test.d.ts +0 -2
- package/script/src/ast/nodes/class.test.d.ts.map +0 -1
- package/script/src/ast/nodes/class.test.js +0 -221
- package/script/src/ast/nodes/constructor.test.d.ts +0 -2
- package/script/src/ast/nodes/constructor.test.d.ts.map +0 -1
- package/script/src/ast/nodes/constructor.test.js +0 -141
- package/script/src/ast/nodes/doc-tag.test.d.ts +0 -2
- package/script/src/ast/nodes/doc-tag.test.d.ts.map +0 -1
- package/script/src/ast/nodes/doc-tag.test.js +0 -69
- package/script/src/ast/nodes/doc.test.d.ts +0 -2
- package/script/src/ast/nodes/doc.test.d.ts.map +0 -1
- package/script/src/ast/nodes/doc.test.js +0 -35
- package/script/src/ast/nodes/enum-value.test.d.ts +0 -2
- package/script/src/ast/nodes/enum-value.test.d.ts.map +0 -1
- package/script/src/ast/nodes/enum-value.test.js +0 -117
- package/script/src/ast/nodes/enum.test.d.ts +0 -2
- package/script/src/ast/nodes/enum.test.d.ts.map +0 -1
- package/script/src/ast/nodes/enum.test.js +0 -131
- package/script/src/ast/nodes/function.test.d.ts +0 -2
- package/script/src/ast/nodes/function.test.d.ts.map +0 -1
- package/script/src/ast/nodes/function.test.js +0 -162
- package/script/src/ast/nodes/generic-parameter.test.d.ts +0 -2
- package/script/src/ast/nodes/generic-parameter.test.d.ts.map +0 -1
- package/script/src/ast/nodes/generic-parameter.test.js +0 -51
- package/script/src/ast/nodes/init-block.test.d.ts +0 -2
- package/script/src/ast/nodes/init-block.test.d.ts.map +0 -1
- package/script/src/ast/nodes/init-block.test.js +0 -30
- package/script/src/ast/nodes/interface.test.d.ts +0 -2
- package/script/src/ast/nodes/interface.test.d.ts.map +0 -1
- package/script/src/ast/nodes/interface.test.js +0 -123
- package/script/src/ast/nodes/object.test.d.ts +0 -2
- package/script/src/ast/nodes/object.test.d.ts.map +0 -1
- package/script/src/ast/nodes/object.test.js +0 -80
- package/script/src/ast/nodes/parameter.test.d.ts +0 -2
- package/script/src/ast/nodes/parameter.test.d.ts.map +0 -1
- package/script/src/ast/nodes/parameter.test.js +0 -154
- package/script/src/ast/nodes/property.test.d.ts +0 -2
- package/script/src/ast/nodes/property.test.d.ts.map +0 -1
- package/script/src/ast/nodes/property.test.js +0 -208
- package/script/src/ast/nodes/reference.test.d.ts +0 -2
- package/script/src/ast/nodes/reference.test.d.ts.map +0 -1
- package/script/src/ast/nodes/reference.test.js +0 -38
- package/script/src/ast/nodes/string.test.d.ts +0 -2
- package/script/src/ast/nodes/string.test.d.ts.map +0 -1
- package/script/src/ast/nodes/string.test.js +0 -50
- package/script/src/import-collection.test.d.ts +0 -2
- package/script/src/import-collection.test.d.ts.map +0 -1
- package/script/src/import-collection.test.js +0 -101
- package/script/tests/openapi-models.test.d.ts +0 -2
- package/script/tests/openapi-models.test.d.ts.map +0 -1
- package/script/tests/openapi-models.test.js +0 -48
- package/src/_dnt.test_polyfills.ts +0 -43
- package/src/_dnt.test_shims.ts +0 -64
- package/src/deps/jsr.io/@std/assert/1.0.6/assertion_error.ts +0 -31
- package/src/deps/jsr.io/@std/assert/1.0.6/equal.ts +0 -152
- package/src/deps/jsr.io/@std/assert/1.0.6/equals.ts +0 -52
- package/src/deps/jsr.io/@std/assert/1.0.6/false.ts +0 -26
- package/src/deps/jsr.io/@std/assert/1.0.6/instance_of.ts +0 -64
- package/src/deps/jsr.io/@std/assert/1.0.6/is_error.ts +0 -65
- package/src/deps/jsr.io/@std/assert/1.0.6/match.ts +0 -30
- package/src/deps/jsr.io/@std/assert/1.0.6/not_instance_of.ts +0 -33
- package/src/deps/jsr.io/@std/assert/1.0.6/not_match.ts +0 -30
- package/src/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.ts +0 -42
- package/src/deps/jsr.io/@std/assert/1.0.6/object_match.ts +0 -202
- package/src/deps/jsr.io/@std/assert/1.0.6/rejects.ts +0 -123
- package/src/deps/jsr.io/@std/assert/1.0.6/strict_equals.ts +0 -67
- package/src/deps/jsr.io/@std/expect/1.0.5/_assert_equals.ts +0 -38
- package/src/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.ts +0 -35
- package/src/deps/jsr.io/@std/expect/1.0.5/_assertion.ts +0 -13
- package/src/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.ts +0 -147
- package/src/deps/jsr.io/@std/expect/1.0.5/_build_message.ts +0 -51
- package/src/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.ts +0 -19
- package/src/deps/jsr.io/@std/expect/1.0.5/_equal.ts +0 -229
- package/src/deps/jsr.io/@std/expect/1.0.5/_extend.ts +0 -16
- package/src/deps/jsr.io/@std/expect/1.0.5/_inspect_args.ts +0 -15
- package/src/deps/jsr.io/@std/expect/1.0.5/_matchers.ts +0 -828
- package/src/deps/jsr.io/@std/expect/1.0.5/_mock_util.ts +0 -22
- package/src/deps/jsr.io/@std/expect/1.0.5/_types.ts +0 -917
- package/src/deps/jsr.io/@std/expect/1.0.5/_utils.ts +0 -201
- package/src/deps/jsr.io/@std/expect/1.0.5/expect.ts +0 -511
- package/src/deps/jsr.io/@std/internal/1.0.4/assertion_state.ts +0 -111
- package/src/deps/jsr.io/@std/internal/1.0.4/build_message.ts +0 -134
- package/src/deps/jsr.io/@std/internal/1.0.4/diff.ts +0 -317
- package/src/deps/jsr.io/@std/internal/1.0.4/diff_str.ts +0 -204
- package/src/deps/jsr.io/@std/internal/1.0.4/format.ts +0 -39
- package/src/deps/jsr.io/@std/internal/1.0.4/styles.ts +0 -233
- package/src/deps/jsr.io/@std/internal/1.0.4/types.ts +0 -18
- package/src/deps/jsr.io/@std/testing/1.0.3/_test_suite.ts +0 -389
- package/src/deps/jsr.io/@std/testing/1.0.3/bdd.ts +0 -1202
- package/src/deps/jsr.io/@std/testing/1.0.3/mock.ts +0 -1839
- package/src/mod.ts +0 -8
- package/src/src/assets.ts +0 -9
- package/src/src/ast/_index.ts +0 -66
- package/src/src/ast/common.ts +0 -1
- package/src/src/ast/index.ts +0 -1
- package/src/src/ast/node.ts +0 -10
- package/src/src/ast/nodes/annotation.test.ts +0 -69
- package/src/src/ast/nodes/annotation.ts +0 -79
- package/src/src/ast/nodes/argument.test.ts +0 -41
- package/src/src/ast/nodes/argument.ts +0 -62
- package/src/src/ast/nodes/call.test.ts +0 -44
- package/src/src/ast/nodes/call.ts +0 -66
- package/src/src/ast/nodes/class.test.ts +0 -274
- package/src/src/ast/nodes/class.ts +0 -178
- package/src/src/ast/nodes/collection-literal.ts +0 -49
- package/src/src/ast/nodes/constructor.test.ts +0 -178
- package/src/src/ast/nodes/constructor.ts +0 -126
- package/src/src/ast/nodes/doc-tag.test.ts +0 -84
- package/src/src/ast/nodes/doc-tag.ts +0 -138
- package/src/src/ast/nodes/doc.test.ts +0 -42
- package/src/src/ast/nodes/doc.ts +0 -111
- package/src/src/ast/nodes/enum-value.test.ts +0 -146
- package/src/src/ast/nodes/enum-value.ts +0 -100
- package/src/src/ast/nodes/enum.test.ts +0 -167
- package/src/src/ast/nodes/enum.ts +0 -163
- package/src/src/ast/nodes/function.test.ts +0 -194
- package/src/src/ast/nodes/function.ts +0 -176
- package/src/src/ast/nodes/generic-parameter.test.ts +0 -60
- package/src/src/ast/nodes/generic-parameter.ts +0 -54
- package/src/src/ast/nodes/init-block.test.ts +0 -36
- package/src/src/ast/nodes/init-block.ts +0 -38
- package/src/src/ast/nodes/interface.test.ts +0 -151
- package/src/src/ast/nodes/interface.ts +0 -133
- package/src/src/ast/nodes/lambda-type.ts +0 -68
- package/src/src/ast/nodes/lambda.ts +0 -68
- package/src/src/ast/nodes/object.test.ts +0 -101
- package/src/src/ast/nodes/object.ts +0 -102
- package/src/src/ast/nodes/parameter.test.ts +0 -191
- package/src/src/ast/nodes/parameter.ts +0 -118
- package/src/src/ast/nodes/property.test.ts +0 -253
- package/src/src/ast/nodes/property.ts +0 -225
- package/src/src/ast/nodes/reference.test.ts +0 -47
- package/src/src/ast/nodes/reference.ts +0 -178
- package/src/src/ast/nodes/string.test.ts +0 -61
- package/src/src/ast/nodes/string.ts +0 -114
- package/src/src/ast/nodes/types.ts +0 -23
- package/src/src/ast/references/index.ts +0 -8
- package/src/src/ast/references/jackson.ts +0 -16
- package/src/src/ast/references/jakarta.ts +0 -10
- package/src/src/ast/references/java.ts +0 -19
- package/src/src/ast/references/kotlin.ts +0 -40
- package/src/src/ast/references/okhttp3.ts +0 -5
- package/src/src/ast/references/reactor.ts +0 -5
- package/src/src/ast/references/spring.ts +0 -58
- package/src/src/ast/references/swagger.ts +0 -19
- package/src/src/ast/utils/get-kotlin-builder-options.ts +0 -19
- package/src/src/ast/utils/to-kt-node.ts +0 -31
- package/src/src/ast/utils/write-kt-annotations.ts +0 -15
- package/src/src/ast/utils/write-kt-arguments.ts +0 -45
- package/src/src/ast/utils/write-kt-enum-values.ts +0 -27
- package/src/src/ast/utils/write-kt-generic-parameters.ts +0 -12
- package/src/src/ast/utils/write-kt-members.ts +0 -25
- package/src/src/ast/utils/write-kt-node.ts +0 -37
- package/src/src/ast/utils/write-kt-parameters.ts +0 -25
- package/src/src/common-results.ts +0 -4
- package/src/src/config.ts +0 -39
- package/src/src/file-builder.ts +0 -108
- package/src/src/generators/file-generator.ts +0 -29
- package/src/src/generators/index.ts +0 -4
- package/src/src/generators/models/args.ts +0 -128
- package/src/src/generators/models/index.ts +0 -4
- package/src/src/generators/models/model-generator.ts +0 -602
- package/src/src/generators/models/models-generator.ts +0 -65
- package/src/src/generators/models/models.ts +0 -95
- package/src/src/generators/services/okhttp3-clients/args.ts +0 -78
- package/src/src/generators/services/okhttp3-clients/index.ts +0 -4
- package/src/src/generators/services/okhttp3-clients/models.ts +0 -60
- package/src/src/generators/services/okhttp3-clients/okhttp3-client-generator.ts +0 -555
- package/src/src/generators/services/okhttp3-clients/okhttp3-clients-generator.ts +0 -128
- package/src/src/generators/services/okhttp3-clients/refs.ts +0 -55
- package/src/src/generators/services/spring-controllers/args.ts +0 -71
- package/src/src/generators/services/spring-controllers/index.ts +0 -4
- package/src/src/generators/services/spring-controllers/models.ts +0 -58
- package/src/src/generators/services/spring-controllers/spring-controller-generator.ts +0 -630
- package/src/src/generators/services/spring-controllers/spring-controllers-generator.ts +0 -70
- package/src/src/import-collection.test.ts +0 -116
- package/src/src/import-collection.ts +0 -98
- package/src/src/types.ts +0 -3
- package/src/src/utils.ts +0 -39
- package/src/tests/openapi-models.test.ts +0 -63
- package/test_runner.js +0 -227
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.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WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,OAAO,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,KAAK,IAAI,GAAG,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC;AAEnC,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,CACT,GAAG,EAAE,GAAG,EACR,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,KACb,MAAM,CAAC;IACZ,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,CACL,GAAG,EAAE,OAAO,EACZ,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,MAAM,KACX,MAAM,CAAC;IACZ,IAAI,EAAE,IAAI,CAAC;CACZ"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { EqualOptions, EqualOptionUtil } from "./_types.js";
|
|
2
|
-
import type { Tester } from "./_types.js";
|
|
3
|
-
export declare function buildEqualOptions(options: EqualOptionUtil): EqualOptions;
|
|
4
|
-
export declare function isPromiseLike(value: unknown): value is PromiseLike<unknown>;
|
|
5
|
-
export declare function hasIterator(object: any): boolean;
|
|
6
|
-
export declare function isA<T>(typeName: string, value: unknown): value is T;
|
|
7
|
-
export declare function iterableEquality(a: any, b: any, customTesters?: Tester[], aStack?: unknown[], bStack?: unknown[]): boolean | undefined;
|
|
8
|
-
//# sourceMappingURL=_utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_utils.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.5/_utils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1C,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,eAAe,GAAG,YAAY,CAYxE;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,WAAW,CAAC,OAAO,CAAC,CAM3E;AAGD,wBAAgB,WAAW,CAAC,MAAM,EAAE,GAAG,WAEtC;AAED,wBAAgB,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,CAAC,CAEnE;AAiBD,wBAAgB,gBAAgB,CAE9B,CAAC,EAAE,GAAG,EAEN,CAAC,EAAE,GAAG,EACN,aAAa,GAAE,MAAM,EAAO,EAC5B,MAAM,GAAE,OAAO,EAAO,EACtB,MAAM,GAAE,OAAO,EAAO,GACrB,OAAO,GAAG,SAAS,CA2IrB"}
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
3
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved. MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.buildEqualOptions = buildEqualOptions;
|
|
6
|
-
exports.isPromiseLike = isPromiseLike;
|
|
7
|
-
exports.hasIterator = hasIterator;
|
|
8
|
-
exports.isA = isA;
|
|
9
|
-
exports.iterableEquality = iterableEquality;
|
|
10
|
-
const _equal_js_1 = require("./_equal.js");
|
|
11
|
-
function buildEqualOptions(options) {
|
|
12
|
-
const { customMessage, customTesters = [], strictCheck } = options !== null && options !== void 0 ? options : {};
|
|
13
|
-
const ret = {
|
|
14
|
-
customTesters,
|
|
15
|
-
};
|
|
16
|
-
if (customMessage !== undefined) {
|
|
17
|
-
ret.msg = customMessage;
|
|
18
|
-
}
|
|
19
|
-
if (strictCheck !== undefined) {
|
|
20
|
-
ret.strictCheck = strictCheck;
|
|
21
|
-
}
|
|
22
|
-
return ret;
|
|
23
|
-
}
|
|
24
|
-
function isPromiseLike(value) {
|
|
25
|
-
if (value == null) {
|
|
26
|
-
return false;
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
return typeof (value.then) === "function";
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
// deno-lint-ignore no-explicit-any
|
|
33
|
-
function hasIterator(object) {
|
|
34
|
-
return !!(object != null && object[Symbol.iterator]);
|
|
35
|
-
}
|
|
36
|
-
function isA(typeName, value) {
|
|
37
|
-
return Object.prototype.toString.apply(value) === `[object ${typeName}]`;
|
|
38
|
-
}
|
|
39
|
-
function isObject(a) {
|
|
40
|
-
return a !== null && typeof a === "object";
|
|
41
|
-
}
|
|
42
|
-
// deno-lint-ignore no-explicit-any
|
|
43
|
-
function entries(obj) {
|
|
44
|
-
if (!isObject(obj))
|
|
45
|
-
return [];
|
|
46
|
-
return Object.getOwnPropertySymbols(obj)
|
|
47
|
-
.filter((key) => key !== Symbol.iterator)
|
|
48
|
-
.map((key) => [key, obj[key]])
|
|
49
|
-
.concat(Object.entries(obj));
|
|
50
|
-
}
|
|
51
|
-
// Ported from https://github.com/jestjs/jest/blob/442c7f692e3a92f14a2fb56c1737b26fc663a0ef/packages/expect-utils/src/utils.ts#L173
|
|
52
|
-
function iterableEquality(
|
|
53
|
-
// deno-lint-ignore no-explicit-any
|
|
54
|
-
a,
|
|
55
|
-
// deno-lint-ignore no-explicit-any
|
|
56
|
-
b, customTesters = [], aStack = [], bStack = []) {
|
|
57
|
-
if (typeof a !== "object" ||
|
|
58
|
-
typeof b !== "object" ||
|
|
59
|
-
Array.isArray(a) ||
|
|
60
|
-
Array.isArray(b) ||
|
|
61
|
-
!hasIterator(a) ||
|
|
62
|
-
!hasIterator(b)) {
|
|
63
|
-
return undefined;
|
|
64
|
-
}
|
|
65
|
-
if (a.constructor !== b.constructor) {
|
|
66
|
-
return false;
|
|
67
|
-
}
|
|
68
|
-
let length = aStack.length;
|
|
69
|
-
while (length--) {
|
|
70
|
-
// Linear search. Performance is inversely proportional to the number of
|
|
71
|
-
// unique nested structures.
|
|
72
|
-
// circular references at same depth are equal
|
|
73
|
-
// circular reference is not equal to non-circular one
|
|
74
|
-
if (aStack[length] === a) {
|
|
75
|
-
return bStack[length] === b;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
aStack.push(a);
|
|
79
|
-
bStack.push(b);
|
|
80
|
-
// deno-lint-ignore no-explicit-any
|
|
81
|
-
const iterableEqualityWithStack = (a, b) => iterableEquality(a, b, [...filteredCustomTesters], [...aStack], [...bStack]);
|
|
82
|
-
// Replace any instance of iterableEquality with the new
|
|
83
|
-
// iterableEqualityWithStack so we can do circular detection
|
|
84
|
-
const filteredCustomTesters = [
|
|
85
|
-
...customTesters.filter((t) => t !== iterableEquality),
|
|
86
|
-
iterableEqualityWithStack,
|
|
87
|
-
];
|
|
88
|
-
if (a.size !== undefined) {
|
|
89
|
-
if (a.size !== b.size) {
|
|
90
|
-
return false;
|
|
91
|
-
}
|
|
92
|
-
else if (isA("Set", a)) {
|
|
93
|
-
let allFound = true;
|
|
94
|
-
for (const aValue of a) {
|
|
95
|
-
if (!b.has(aValue)) {
|
|
96
|
-
let has = false;
|
|
97
|
-
for (const bValue of b) {
|
|
98
|
-
const isEqual = (0, _equal_js_1.equal)(aValue, bValue, {
|
|
99
|
-
customTesters: filteredCustomTesters,
|
|
100
|
-
});
|
|
101
|
-
if (isEqual === true) {
|
|
102
|
-
has = true;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
if (has === false) {
|
|
106
|
-
allFound = false;
|
|
107
|
-
break;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
// Remove the first value from the stack of traversed values.
|
|
112
|
-
aStack.pop();
|
|
113
|
-
bStack.pop();
|
|
114
|
-
return allFound;
|
|
115
|
-
}
|
|
116
|
-
else if (isA("Map", a)) {
|
|
117
|
-
let allFound = true;
|
|
118
|
-
for (const aEntry of a) {
|
|
119
|
-
if (!b.has(aEntry[0]) ||
|
|
120
|
-
!(0, _equal_js_1.equal)(aEntry[1], b.get(aEntry[0]), {
|
|
121
|
-
customTesters: filteredCustomTesters,
|
|
122
|
-
})) {
|
|
123
|
-
let has = false;
|
|
124
|
-
for (const bEntry of b) {
|
|
125
|
-
const matchedKey = (0, _equal_js_1.equal)(aEntry[0], bEntry[0], { customTesters: filteredCustomTesters });
|
|
126
|
-
let matchedValue = false;
|
|
127
|
-
if (matchedKey === true) {
|
|
128
|
-
matchedValue = (0, _equal_js_1.equal)(aEntry[1], bEntry[1], { customTesters: filteredCustomTesters });
|
|
129
|
-
}
|
|
130
|
-
if (matchedValue === true) {
|
|
131
|
-
has = true;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
if (has === false) {
|
|
135
|
-
allFound = false;
|
|
136
|
-
break;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
// Remove the first value from the stack of traversed values.
|
|
141
|
-
aStack.pop();
|
|
142
|
-
bStack.pop();
|
|
143
|
-
return allFound;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
const bIterator = b[Symbol.iterator]();
|
|
147
|
-
for (const aValue of a) {
|
|
148
|
-
const nextB = bIterator.next();
|
|
149
|
-
if (nextB.done ||
|
|
150
|
-
!(0, _equal_js_1.equal)(aValue, nextB.value, { customTesters: filteredCustomTesters })) {
|
|
151
|
-
return false;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
if (!bIterator.next().done) {
|
|
155
|
-
return false;
|
|
156
|
-
}
|
|
157
|
-
const aEntries = entries(a);
|
|
158
|
-
const bEntries = entries(b);
|
|
159
|
-
if (!(0, _equal_js_1.equal)(aEntries, bEntries)) {
|
|
160
|
-
return false;
|
|
161
|
-
}
|
|
162
|
-
// Remove the first value from the stack of traversed values.
|
|
163
|
-
aStack.pop();
|
|
164
|
-
bStack.pop();
|
|
165
|
-
return true;
|
|
166
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type { Expected, Matchers } from "./_types.js";
|
|
2
|
-
import * as asymmetricMatchers from "./_asymmetric_matchers.js";
|
|
3
|
-
import type { Tester } from "./_types.js";
|
|
4
|
-
export type { AnyConstructor, Async, Expected } from "./_types.js";
|
|
5
|
-
/**
|
|
6
|
-
* **Note:** the documentation for this module is taken from [Jest](https://github.com/jestjs/jest/blob/main/website/versioned_docs/version-29.7/ExpectAPI.md)
|
|
7
|
-
* and the examples are updated for Deno.
|
|
8
|
-
*
|
|
9
|
-
* The `expect` function is used to test a value. You will use `expect` along with a
|
|
10
|
-
* "matcher" function to assert something about a value.
|
|
11
|
-
*
|
|
12
|
-
* @example Usage
|
|
13
|
-
* ```ts no-assert
|
|
14
|
-
* import { expect } from "@std/expect";
|
|
15
|
-
*
|
|
16
|
-
* function bestLaCroixFlavor(): string {
|
|
17
|
-
* return "grapefruit";
|
|
18
|
-
* }
|
|
19
|
-
*
|
|
20
|
-
* Deno.test("the best flavor is grapefruit", () => {
|
|
21
|
-
* expect(bestLaCroixFlavor()).toBe("grapefruit");
|
|
22
|
-
* });
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* In this case, `toBe` is the matcher function. There are a lot of different
|
|
26
|
-
* matcher functions, documented in the main module description.
|
|
27
|
-
*
|
|
28
|
-
* The argument to `expect` should be the value that your code produces, and any
|
|
29
|
-
* argument to the matcher should be the correct value. If you mix them up, your
|
|
30
|
-
* tests will still work, but the error messages on failing tests will look
|
|
31
|
-
* strange.
|
|
32
|
-
*
|
|
33
|
-
* @param value The value to perform assertions on.
|
|
34
|
-
* @param customMessage An optional custom message to include in the assertion error.
|
|
35
|
-
* @returns An expected object that can be used to chain matchers.
|
|
36
|
-
*
|
|
37
|
-
* @typeParam T The interface used for `expect`. This is usually needed only if you want to use `expect.extend` to create custom matchers.
|
|
38
|
-
*/
|
|
39
|
-
export declare function expect<T extends Expected = Expected>(value: unknown, customMessage?: string): T;
|
|
40
|
-
export declare namespace expect {
|
|
41
|
-
var addEqualityTesters: (newTesters: Tester[]) => void;
|
|
42
|
-
var extend: (newExtendMatchers: Matchers) => void;
|
|
43
|
-
var anything: () => ReturnType<typeof asymmetricMatchers.anything>;
|
|
44
|
-
var any: (c: unknown) => ReturnType<typeof asymmetricMatchers.any>;
|
|
45
|
-
var arrayContaining: (c: any[]) => ReturnType<typeof asymmetricMatchers.arrayContaining>;
|
|
46
|
-
var closeTo: (num: number, numDigits?: number) => ReturnType<typeof asymmetricMatchers.closeTo>;
|
|
47
|
-
var stringContaining: (str: string) => ReturnType<typeof asymmetricMatchers.stringContaining>;
|
|
48
|
-
var stringMatching: (pattern: string | RegExp) => ReturnType<typeof asymmetricMatchers.stringMatching>;
|
|
49
|
-
var hasAssertions: () => void;
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=expect.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"expect.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.5/expect.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,QAAQ,EAKR,QAAQ,EACT,MAAM,aAAa,CAAC;AA4CrB,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,YAAY,EAAE,cAAc,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AA+CnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAClD,KAAK,EAAE,OAAO,EACd,aAAa,CAAC,EAAE,MAAM,GACrB,CAAC,CAwFH;yBA3Fe,MAAM;yCAsJR,MAAM,EAAE,KACjB,IAAI;oCAyDgD,QAAQ,KAAK,IAAI;wBAgBnB,UAAU,CAC/D,OAAO,kBAAkB,CAAC,QAAQ,CACnC;iBAuBI,OAAO,KACP,UAAU,CAAC,OAAO,kBAAkB,CAAC,GAAG,CAAC;6BA0BzC,GAAG,EAAE,KACL,UAAU,CAAC,OAAO,kBAAkB,CAAC,eAAe,CAAC;uBA0BnD,MAAM,cACC,MAAM,KACf,UAAU,CAAC,OAAO,kBAAkB,CAAC,OAAO,CAAC;gCAmB3C,MAAM,KACR,UAAU,CAAC,OAAO,kBAAkB,CAAC,gBAAgB,CAAC;kCAwBhD,MAAM,GAAG,MAAM,KACrB,UAAU,CAAC,OAAO,kBAAkB,CAAC,cAAc,CAAC;6BAkBX,IAAI"}
|
|
@@ -1,429 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
3
|
-
// This module is browser compatible.
|
|
4
|
-
// Copyright 2019 Allain Lalonde. All rights reserved. ISC License.
|
|
5
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
// The documentation is extracted from https://github.com/jestjs/jest/blob/main/website/versioned_docs/version-29.7/ExpectAPI.md
|
|
7
|
-
// and updated for the Deno ecosystem.
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.expect = expect;
|
|
10
|
-
const tslib_1 = require("tslib");
|
|
11
|
-
const assertion_error_js_1 = require("../../assert/1.0.6/assertion_error.js");
|
|
12
|
-
const _assertion_js_1 = require("./_assertion.js");
|
|
13
|
-
const _custom_equality_tester_js_1 = require("./_custom_equality_tester.js");
|
|
14
|
-
const _equal_js_1 = require("./_equal.js");
|
|
15
|
-
const _extend_js_1 = require("./_extend.js");
|
|
16
|
-
const _matchers_js_1 = require("./_matchers.js");
|
|
17
|
-
const _utils_js_1 = require("./_utils.js");
|
|
18
|
-
const asymmetricMatchers = tslib_1.__importStar(require("./_asymmetric_matchers.js"));
|
|
19
|
-
const matchers = {
|
|
20
|
-
lastCalledWith: _matchers_js_1.toHaveBeenLastCalledWith,
|
|
21
|
-
lastReturnedWith: _matchers_js_1.toHaveLastReturnedWith,
|
|
22
|
-
nthCalledWith: _matchers_js_1.toHaveBeenNthCalledWith,
|
|
23
|
-
nthReturnedWith: _matchers_js_1.toHaveNthReturnedWith,
|
|
24
|
-
toBeCalled: _matchers_js_1.toHaveBeenCalled,
|
|
25
|
-
toBeCalledTimes: _matchers_js_1.toHaveBeenCalledTimes,
|
|
26
|
-
toBeCalledWith: _matchers_js_1.toHaveBeenCalledWith,
|
|
27
|
-
toBeCloseTo: _matchers_js_1.toBeCloseTo,
|
|
28
|
-
toBeDefined: _matchers_js_1.toBeDefined,
|
|
29
|
-
toBeFalsy: _matchers_js_1.toBeFalsy,
|
|
30
|
-
toBeGreaterThanOrEqual: _matchers_js_1.toBeGreaterThanOrEqual,
|
|
31
|
-
toBeGreaterThan: _matchers_js_1.toBeGreaterThan,
|
|
32
|
-
toBeInstanceOf: _matchers_js_1.toBeInstanceOf,
|
|
33
|
-
toBeLessThanOrEqual: _matchers_js_1.toBeLessThanOrEqual,
|
|
34
|
-
toBeLessThan: _matchers_js_1.toBeLessThan,
|
|
35
|
-
toBeNaN: _matchers_js_1.toBeNaN,
|
|
36
|
-
toBeNull: _matchers_js_1.toBeNull,
|
|
37
|
-
toBeTruthy: _matchers_js_1.toBeTruthy,
|
|
38
|
-
toBeUndefined: _matchers_js_1.toBeUndefined,
|
|
39
|
-
toBe: _matchers_js_1.toBe,
|
|
40
|
-
toContainEqual: _matchers_js_1.toContainEqual,
|
|
41
|
-
toContain: _matchers_js_1.toContain,
|
|
42
|
-
toEqual: _matchers_js_1.toEqual,
|
|
43
|
-
toHaveBeenCalledTimes: _matchers_js_1.toHaveBeenCalledTimes,
|
|
44
|
-
toHaveBeenCalledWith: _matchers_js_1.toHaveBeenCalledWith,
|
|
45
|
-
toHaveBeenCalled: _matchers_js_1.toHaveBeenCalled,
|
|
46
|
-
toHaveBeenLastCalledWith: _matchers_js_1.toHaveBeenLastCalledWith,
|
|
47
|
-
toHaveBeenNthCalledWith: _matchers_js_1.toHaveBeenNthCalledWith,
|
|
48
|
-
toHaveLength: _matchers_js_1.toHaveLength,
|
|
49
|
-
toHaveLastReturnedWith: _matchers_js_1.toHaveLastReturnedWith,
|
|
50
|
-
toHaveNthReturnedWith: _matchers_js_1.toHaveNthReturnedWith,
|
|
51
|
-
toHaveProperty: _matchers_js_1.toHaveProperty,
|
|
52
|
-
toHaveReturnedTimes: _matchers_js_1.toHaveReturnedTimes,
|
|
53
|
-
toHaveReturnedWith: _matchers_js_1.toHaveReturnedWith,
|
|
54
|
-
toHaveReturned: _matchers_js_1.toHaveReturned,
|
|
55
|
-
toMatchObject: _matchers_js_1.toMatchObject,
|
|
56
|
-
toMatch: _matchers_js_1.toMatch,
|
|
57
|
-
toReturn: _matchers_js_1.toHaveReturned,
|
|
58
|
-
toReturnTimes: _matchers_js_1.toHaveReturnedTimes,
|
|
59
|
-
toReturnWith: _matchers_js_1.toHaveReturnedWith,
|
|
60
|
-
toStrictEqual: _matchers_js_1.toStrictEqual,
|
|
61
|
-
toThrow: _matchers_js_1.toThrow,
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* **Note:** the documentation for this module is taken from [Jest](https://github.com/jestjs/jest/blob/main/website/versioned_docs/version-29.7/ExpectAPI.md)
|
|
65
|
-
* and the examples are updated for Deno.
|
|
66
|
-
*
|
|
67
|
-
* The `expect` function is used to test a value. You will use `expect` along with a
|
|
68
|
-
* "matcher" function to assert something about a value.
|
|
69
|
-
*
|
|
70
|
-
* @example Usage
|
|
71
|
-
* ```ts no-assert
|
|
72
|
-
* import { expect } from "@std/expect";
|
|
73
|
-
*
|
|
74
|
-
* function bestLaCroixFlavor(): string {
|
|
75
|
-
* return "grapefruit";
|
|
76
|
-
* }
|
|
77
|
-
*
|
|
78
|
-
* Deno.test("the best flavor is grapefruit", () => {
|
|
79
|
-
* expect(bestLaCroixFlavor()).toBe("grapefruit");
|
|
80
|
-
* });
|
|
81
|
-
* ```
|
|
82
|
-
*
|
|
83
|
-
* In this case, `toBe` is the matcher function. There are a lot of different
|
|
84
|
-
* matcher functions, documented in the main module description.
|
|
85
|
-
*
|
|
86
|
-
* The argument to `expect` should be the value that your code produces, and any
|
|
87
|
-
* argument to the matcher should be the correct value. If you mix them up, your
|
|
88
|
-
* tests will still work, but the error messages on failing tests will look
|
|
89
|
-
* strange.
|
|
90
|
-
*
|
|
91
|
-
* @param value The value to perform assertions on.
|
|
92
|
-
* @param customMessage An optional custom message to include in the assertion error.
|
|
93
|
-
* @returns An expected object that can be used to chain matchers.
|
|
94
|
-
*
|
|
95
|
-
* @typeParam T The interface used for `expect`. This is usually needed only if you want to use `expect.extend` to create custom matchers.
|
|
96
|
-
*/
|
|
97
|
-
function expect(value, customMessage) {
|
|
98
|
-
let isNot = false;
|
|
99
|
-
let isPromised = false;
|
|
100
|
-
const self = new Proxy({}, {
|
|
101
|
-
get(_, name) {
|
|
102
|
-
if (name === "not") {
|
|
103
|
-
isNot = !isNot;
|
|
104
|
-
return self;
|
|
105
|
-
}
|
|
106
|
-
if (name === "resolves") {
|
|
107
|
-
if (!(0, _utils_js_1.isPromiseLike)(value)) {
|
|
108
|
-
throw new assertion_error_js_1.AssertionError("Expected value must be PromiseLike");
|
|
109
|
-
}
|
|
110
|
-
isPromised = true;
|
|
111
|
-
return self;
|
|
112
|
-
}
|
|
113
|
-
if (name === "rejects") {
|
|
114
|
-
if (!(0, _utils_js_1.isPromiseLike)(value)) {
|
|
115
|
-
throw new assertion_error_js_1.AssertionError("Expected value must be a PromiseLike");
|
|
116
|
-
}
|
|
117
|
-
value = value.then((value) => {
|
|
118
|
-
throw new assertion_error_js_1.AssertionError(`Promise did not reject: resolved to ${value}`);
|
|
119
|
-
}, (err) => err);
|
|
120
|
-
isPromised = true;
|
|
121
|
-
return self;
|
|
122
|
-
}
|
|
123
|
-
const extendMatchers = (0, _extend_js_1.getExtendMatchers)();
|
|
124
|
-
const allMatchers = {
|
|
125
|
-
...matchers,
|
|
126
|
-
...extendMatchers,
|
|
127
|
-
};
|
|
128
|
-
const matcher = allMatchers[name];
|
|
129
|
-
if (!matcher) {
|
|
130
|
-
throw new TypeError(typeof name === "string"
|
|
131
|
-
? `matcher not found: ${name}`
|
|
132
|
-
: "matcher not found");
|
|
133
|
-
}
|
|
134
|
-
return (...args) => {
|
|
135
|
-
function applyMatcher(value, args) {
|
|
136
|
-
const context = {
|
|
137
|
-
value,
|
|
138
|
-
equal: _equal_js_1.equal,
|
|
139
|
-
isNot: false,
|
|
140
|
-
customMessage,
|
|
141
|
-
customTesters: (0, _custom_equality_tester_js_1.getCustomEqualityTesters)(),
|
|
142
|
-
};
|
|
143
|
-
if (isNot) {
|
|
144
|
-
context.isNot = true;
|
|
145
|
-
}
|
|
146
|
-
if (name in extendMatchers) {
|
|
147
|
-
const result = matcher(context, ...args);
|
|
148
|
-
if (context.isNot) {
|
|
149
|
-
if (result.pass) {
|
|
150
|
-
throw new assertion_error_js_1.AssertionError(result.message());
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
else if (!result.pass) {
|
|
154
|
-
throw new assertion_error_js_1.AssertionError(result.message());
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
matcher(context, ...args);
|
|
159
|
-
}
|
|
160
|
-
(0, _assertion_js_1.emitAssertionTrigger)();
|
|
161
|
-
}
|
|
162
|
-
return isPromised
|
|
163
|
-
? value.then((value) => applyMatcher(value, args))
|
|
164
|
-
: applyMatcher(value, args);
|
|
165
|
-
};
|
|
166
|
-
},
|
|
167
|
-
});
|
|
168
|
-
return self;
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* You can use `expect.addEqualityTesters` to add your own methods to test if two
|
|
172
|
-
* objects are equal. For example, let's say you have a class in your code that
|
|
173
|
-
* represents volume and can determine if two volumes using different units are
|
|
174
|
-
* equal. You may want `toEqual` (and other equality matchers) to use this custom
|
|
175
|
-
* equality method when comparing to Volume classes. You can add a custom equality
|
|
176
|
-
* tester to have `toEqual` detect and apply custom logic when comparing Volume
|
|
177
|
-
* classes:
|
|
178
|
-
*
|
|
179
|
-
* @example
|
|
180
|
-
* ```ts
|
|
181
|
-
* import { expect } from "@std/expect";
|
|
182
|
-
*
|
|
183
|
-
* class Volume {
|
|
184
|
-
* amount: number;
|
|
185
|
-
* unit: "L" | "mL";
|
|
186
|
-
*
|
|
187
|
-
* constructor(amount: number, unit: "L" | "mL") {
|
|
188
|
-
* this.amount = amount;
|
|
189
|
-
* this.unit = unit;
|
|
190
|
-
* }
|
|
191
|
-
*
|
|
192
|
-
* toString() {
|
|
193
|
-
* return `[Volume ${this.amount}${this.unit}]`;
|
|
194
|
-
* }
|
|
195
|
-
*
|
|
196
|
-
* equals(other: Volume) {
|
|
197
|
-
* if (this.unit === other.unit) {
|
|
198
|
-
* return this.amount === other.amount;
|
|
199
|
-
* } else if (this.unit === "L" && other.unit === "mL") {
|
|
200
|
-
* return this.amount * 1000 === other.amount;
|
|
201
|
-
* } else {
|
|
202
|
-
* return this.amount === other.amount * 1000;
|
|
203
|
-
* }
|
|
204
|
-
* }
|
|
205
|
-
* }
|
|
206
|
-
*
|
|
207
|
-
* function areVolumesEqual(a: Volume, b: Volume) {
|
|
208
|
-
* const isAVolume = a instanceof Volume;
|
|
209
|
-
* const isBVolume = b instanceof Volume;
|
|
210
|
-
* if (isAVolume && isBVolume) {
|
|
211
|
-
* return a.equals(b);
|
|
212
|
-
* } else if (isAVolume === isBVolume) {
|
|
213
|
-
* return undefined;
|
|
214
|
-
* } else {
|
|
215
|
-
* return false;
|
|
216
|
-
* }
|
|
217
|
-
* }
|
|
218
|
-
*
|
|
219
|
-
* expect.addEqualityTesters([areVolumesEqual]);
|
|
220
|
-
*
|
|
221
|
-
* Deno.test("are equal with different units", () => {
|
|
222
|
-
* expect(new Volume(1, "L")).toEqual(new Volume(1000, "mL"));
|
|
223
|
-
* });
|
|
224
|
-
* ```
|
|
225
|
-
*/
|
|
226
|
-
expect.addEqualityTesters = _custom_equality_tester_js_1.addCustomEqualityTesters;
|
|
227
|
-
/**
|
|
228
|
-
* Extend `expect()` with custom provided matchers.
|
|
229
|
-
*
|
|
230
|
-
* To do so, you will need to extend the interface `Expected` to define the new signature of the `expect`.
|
|
231
|
-
*
|
|
232
|
-
* ```ts
|
|
233
|
-
* import type { Async, Expected } from "./expect.ts";
|
|
234
|
-
* import { expect } from "./expect.ts";
|
|
235
|
-
*
|
|
236
|
-
* // Extends the `Expected` interface with your new matchers signatures
|
|
237
|
-
* interface ExtendedExpected<IsAsync = false> extends Expected<IsAsync> {
|
|
238
|
-
* // Matcher that asserts value is a dinosaur
|
|
239
|
-
* toBeDinosaur: (options?: { includeTrexs?: boolean }) => unknown;
|
|
240
|
-
*
|
|
241
|
-
* // NOTE: You also need to overrides the following typings to allow modifiers to correctly infer typing
|
|
242
|
-
* not: IsAsync extends true ? Async<ExtendedExpected<true>>
|
|
243
|
-
* : ExtendedExpected<false>;
|
|
244
|
-
* resolves: Async<ExtendedExpected<true>>;
|
|
245
|
-
* rejects: Async<ExtendedExpected<true>>;
|
|
246
|
-
* }
|
|
247
|
-
*
|
|
248
|
-
* // Call `expect.extend()` with your new matchers definitions
|
|
249
|
-
* expect.extend({
|
|
250
|
-
* toBeDinosaur(context, options) {
|
|
251
|
-
* const dino = `${context.value}`;
|
|
252
|
-
* const allowed = ["🦕"];
|
|
253
|
-
* if (options?.includeTrexs) {
|
|
254
|
-
* allowed.push("🦖");
|
|
255
|
-
* }
|
|
256
|
-
* const pass = allowed.includes(dino);
|
|
257
|
-
* if (context.isNot) {
|
|
258
|
-
* // Note: when `context.isNot` is set, the test is considered successful when `pass` is false
|
|
259
|
-
* return {
|
|
260
|
-
* message: () => `Expected "${dino}" to NOT be a dinosaur`,
|
|
261
|
-
* pass,
|
|
262
|
-
* };
|
|
263
|
-
* }
|
|
264
|
-
* return { message: () => `Expected "${dino}" to be a dinosaur`, pass };
|
|
265
|
-
* },
|
|
266
|
-
* });
|
|
267
|
-
*
|
|
268
|
-
* // Alias expect to avoid having to pass the generic typing argument each time
|
|
269
|
-
* // This is probably what you want to export and reuse across your tests
|
|
270
|
-
* const myexpect = expect<ExtendedExpected>;
|
|
271
|
-
*
|
|
272
|
-
* // Perform some tests
|
|
273
|
-
* myexpect("🦕").toBeDinosaur();
|
|
274
|
-
* myexpect("🦧").not.toBeDinosaur();
|
|
275
|
-
* await myexpect(Promise.resolve("🦕")).resolves.toBeDinosaur();
|
|
276
|
-
* await myexpect(Promise.resolve("🦧")).resolves.not.toBeDinosaur();
|
|
277
|
-
*
|
|
278
|
-
* // Regular matchers will still be available
|
|
279
|
-
* myexpect("foo").not.toBeNull()
|
|
280
|
-
* myexpect.anything
|
|
281
|
-
* ```
|
|
282
|
-
*/
|
|
283
|
-
expect.extend = _extend_js_1.setExtendMatchers;
|
|
284
|
-
/**
|
|
285
|
-
* `expect.anything()` matches anything but `null` or `undefined`. You can use it
|
|
286
|
-
* inside `toEqual` or `toHaveBeenCalledWith` instead of a literal value.
|
|
287
|
-
*
|
|
288
|
-
* @example
|
|
289
|
-
* ```ts
|
|
290
|
-
* import { expect, fn } from "@std/expect";
|
|
291
|
-
*
|
|
292
|
-
* Deno.test("map calls its argument with a non-null argument", () => {
|
|
293
|
-
* const mock = fn();
|
|
294
|
-
* [1].map((x) => mock(x));
|
|
295
|
-
* expect(mock).toHaveBeenCalledWith(expect.anything());
|
|
296
|
-
* });
|
|
297
|
-
```
|
|
298
|
-
*/
|
|
299
|
-
expect.anything = asymmetricMatchers.anything;
|
|
300
|
-
/**
|
|
301
|
-
* `expect.any(constructor)` matches anything that was created with the given
|
|
302
|
-
* constructor or if it's a primitive that is of the passed type. You can use it
|
|
303
|
-
* inside `toEqual` or `toHaveBeenCalledWith` instead of a literal value.
|
|
304
|
-
*
|
|
305
|
-
* @example
|
|
306
|
-
* ```ts
|
|
307
|
-
* import { expect } from "@std/expect";
|
|
308
|
-
*
|
|
309
|
-
* class Cat {}
|
|
310
|
-
* Deno.test("expect.any()", () => {
|
|
311
|
-
* expect(new Cat()).toEqual(expect.any(Cat));
|
|
312
|
-
* expect("Hello").toEqual(expect.any(String));
|
|
313
|
-
* expect(1).toEqual(expect.any(Number));
|
|
314
|
-
* expect(() => {}).toEqual(expect.any(Function));
|
|
315
|
-
* expect(false).toEqual(expect.any(Boolean));
|
|
316
|
-
* expect(BigInt(1)).toEqual(expect.any(BigInt));
|
|
317
|
-
* expect(Symbol("sym")).toEqual(expect.any(Symbol));
|
|
318
|
-
* });
|
|
319
|
-
* ```
|
|
320
|
-
*/
|
|
321
|
-
expect.any = asymmetricMatchers.any;
|
|
322
|
-
/**
|
|
323
|
-
* `expect.arrayContaining(array)` matches a received array which contains all of
|
|
324
|
-
* the elements in the expected array. That is, the expected array is a **subset**
|
|
325
|
-
* of the received array. Therefore, it matches a received array which contains
|
|
326
|
-
* elements that are **not** in the expected array.
|
|
327
|
-
*
|
|
328
|
-
* You can use it instead of a literal value:
|
|
329
|
-
*
|
|
330
|
-
* - in `toEqual` or `toHaveBeenCalledWith`
|
|
331
|
-
* - to match a property in `objectContaining` or `toMatchObject`
|
|
332
|
-
*
|
|
333
|
-
* @example
|
|
334
|
-
* ```ts
|
|
335
|
-
* import { expect } from "@std/expect";
|
|
336
|
-
*
|
|
337
|
-
* Deno.test("expect.arrayContaining() with array of numbers", () => {
|
|
338
|
-
* const arr = [1, 2, 3];
|
|
339
|
-
* expect([1, 2, 3, 4]).toEqual(expect.arrayContaining(arr));
|
|
340
|
-
* expect([4, 5, 6]).not.toEqual(expect.arrayContaining(arr));
|
|
341
|
-
* expect([1, 2, 3]).toEqual(expect.arrayContaining(arr));
|
|
342
|
-
* });
|
|
343
|
-
* ```
|
|
344
|
-
*/
|
|
345
|
-
expect.arrayContaining = asymmetricMatchers.arrayContaining;
|
|
346
|
-
/**
|
|
347
|
-
* `expect.closeTo(number, numDigits?)` is useful when comparing floating point
|
|
348
|
-
* numbers in object properties or array item. If you need to compare a number,
|
|
349
|
-
* please use `.toBeCloseTo` instead.
|
|
350
|
-
*
|
|
351
|
-
* The optional `numDigits` argument limits the number of digits to check **after**
|
|
352
|
-
* the decimal point. For the default value `2`, the test criterion is
|
|
353
|
-
* `Math.abs(expected - received) < 0.005 (that is, 10 ** -2 / 2)`.
|
|
354
|
-
*
|
|
355
|
-
* @example
|
|
356
|
-
* ```ts
|
|
357
|
-
* import { expect } from "@std/expect";
|
|
358
|
-
*
|
|
359
|
-
* Deno.test("compare float in object properties", () => {
|
|
360
|
-
* expect({
|
|
361
|
-
* title: "0.1 + 0.2",
|
|
362
|
-
* sum: 0.1 + 0.2,
|
|
363
|
-
* }).toEqual({
|
|
364
|
-
* title: "0.1 + 0.2",
|
|
365
|
-
* sum: expect.closeTo(0.3, 5),
|
|
366
|
-
* });
|
|
367
|
-
* });
|
|
368
|
-
* ```
|
|
369
|
-
*/
|
|
370
|
-
expect.closeTo = asymmetricMatchers.closeTo;
|
|
371
|
-
/**
|
|
372
|
-
* `expect.stringContaining(string)` matches the received value if it is a string
|
|
373
|
-
* that contains the exact expected string.
|
|
374
|
-
*
|
|
375
|
-
* @example
|
|
376
|
-
* ```ts
|
|
377
|
-
* import { expect } from "@std/expect";
|
|
378
|
-
*
|
|
379
|
-
* Deno.test("expect.stringContaining() with strings", () => {
|
|
380
|
-
* expect("https://deno.com/").toEqual(expect.stringContaining("deno"));
|
|
381
|
-
* expect("function").toEqual(expect.stringContaining("func"));
|
|
382
|
-
*
|
|
383
|
-
* expect("Hello, World").not.toEqual(expect.stringContaining("hello"));
|
|
384
|
-
* expect("foobar").not.toEqual(expect.stringContaining("bazz"));
|
|
385
|
-
* });
|
|
386
|
-
* ```
|
|
387
|
-
*/
|
|
388
|
-
expect.stringContaining = asymmetricMatchers.stringContaining;
|
|
389
|
-
/**
|
|
390
|
-
* `expect.stringMatching(string | regexp)` matches the received value if it is a
|
|
391
|
-
* string that matches the expected string or regular expression.
|
|
392
|
-
*
|
|
393
|
-
* You can use it instead of a literal value:
|
|
394
|
-
*
|
|
395
|
-
* - in `toEqual` or `toHaveBeenCalledWith`
|
|
396
|
-
* - to match an element in `arrayContaining`
|
|
397
|
-
* - to match a property in `objectContaining` (not available yet) or `toMatchObject`
|
|
398
|
-
*
|
|
399
|
-
* @example
|
|
400
|
-
* ```ts
|
|
401
|
-
* import { expect } from "@std/expect";
|
|
402
|
-
*
|
|
403
|
-
* Deno.test("example", () => {
|
|
404
|
-
* expect("deno_std").toEqual(expect.stringMatching(/std/));
|
|
405
|
-
* expect("0123456789").toEqual(expect.stringMatching(/\d+/));
|
|
406
|
-
* expect("e").not.toEqual(expect.stringMatching(/\s/));
|
|
407
|
-
* expect("queue").not.toEqual(expect.stringMatching(/en/));
|
|
408
|
-
* });
|
|
409
|
-
* ```
|
|
410
|
-
*/
|
|
411
|
-
expect.stringMatching = asymmetricMatchers.stringMatching;
|
|
412
|
-
/**
|
|
413
|
-
* `expect.hasAssertions` verifies that at least one assertion is called during a test.
|
|
414
|
-
*
|
|
415
|
-
* Note: expect.hasAssertions only can use in bdd function test suite, such as `test` or `it`.
|
|
416
|
-
*
|
|
417
|
-
* @example
|
|
418
|
-
* ```ts
|
|
419
|
-
*
|
|
420
|
-
* import { test } from "@std/testing/bdd";
|
|
421
|
-
* import { expect } from "@std/expect";
|
|
422
|
-
*
|
|
423
|
-
* test("it works", () => {
|
|
424
|
-
* expect.hasAssertions();
|
|
425
|
-
* expect("a").not.toBe("b");
|
|
426
|
-
* });
|
|
427
|
-
* ```
|
|
428
|
-
*/
|
|
429
|
-
expect.hasAssertions = _assertion_js_1.hasAssertions;
|