Feature/typeof#265
Conversation
|
@stackasaur is attempting to deploy a commit to the Beyond The Cloud Team on Vercel. A member of the Team first needs to authorize it. |
|
Haven't written unit tests yet. I added the neccesary classes to add the |
@stackasaur perfect! I'll review it as soon I'll have time! |
pgajek2
left a comment
There was a problem hiding this comment.
I like it! Nice work!
If you disagree with anything, feel free to raise it.
|
What is the expected behavior of situations like this:
Throw Exceptions? |
|
I've addressed all of your comments |
I would say: Let SFDC throw it when executed - as it's default behaviour, let's keep it in this way. |
|
@stackasaur all looks good, you can continue with the unit tests. |
|
@pgajek2 , |
| @@ -0,0 +1,199 @@ | |||
| --- | |||
There was a problem hiding this comment.
I'm not sure what your preference for examples are. I started providing one for each method, but they all looked the same, so I scaled it back to just the one since all usage follows the same pattern.
|
Modified tests to look more like the others I think we're good |
Could you also write a test where you try do mock the result? Would it be possible? |
|
I think that should be possible. I'll give it a go |
* Bump svgo in /website in the npm_and_yarn group across 1 directory (beyond-the-cloud-dev#277) Bumps the npm_and_yarn group with 1 update in the /website directory: [svgo](https://github.com/svg/svgo). Updates `svgo` from 3.3.2 to 3.3.3 - [Release notes](https://github.com/svg/svgo/releases) - [Commits](svg/svgo@v3.3.2...v3.3.3) --- updated-dependencies: - dependency-name: svgo dependency-version: 3.3.3 dependency-type: indirect dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump minimatch in /website in the npm_and_yarn group across 1 directory (beyond-the-cloud-dev#278) Bumps the npm_and_yarn group with 1 update in the /website directory: [minimatch](https://github.com/isaacs/minimatch). Updates `minimatch` from 9.0.5 to 9.0.9 - [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md) - [Commits](isaacs/minimatch@v9.0.5...v9.0.9) --- updated-dependencies: - dependency-name: minimatch dependency-version: 9.0.9 dependency-type: indirect dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * SOQL Cursor Skills --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…cloud-dev#279) * Bump svgo in /website in the npm_and_yarn group across 1 directory (beyond-the-cloud-dev#277) Bumps the npm_and_yarn group with 1 update in the /website directory: [svgo](https://github.com/svg/svgo). Updates `svgo` from 3.3.2 to 3.3.3 - [Release notes](https://github.com/svg/svgo/releases) - [Commits](svg/svgo@v3.3.2...v3.3.3) --- updated-dependencies: - dependency-name: svgo dependency-version: 3.3.3 dependency-type: indirect dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump minimatch in /website in the npm_and_yarn group across 1 directory (beyond-the-cloud-dev#278) Bumps the npm_and_yarn group with 1 update in the /website directory: [minimatch](https://github.com/isaacs/minimatch). Updates `minimatch` from 9.0.5 to 9.0.9 - [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md) - [Commits](isaacs/minimatch@v9.0.5...v9.0.9) --- updated-dependencies: - dependency-name: minimatch dependency-version: 9.0.9 dependency-type: indirect dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat: add support for toLabel with List<String> and test * fix: spelling of argument * fix: use `this` self-reference, replace constatn is test and make it `Iterable` --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…and examples Signed-off-by: Piotr PG Gajek <piotr.gajek95@gmail.com>
Signed-off-by: Piotr PG Gajek <piotr.gajek95@gmail.com>
Signed-off-by: Ethan Phillippi <ethan@stackasaur.us>
|
@pgajek2 , I looked into adding a test with a mocked result, but I'm not entirely sure what we can mock here to actually test anything. I can add a test that actually creates some records to assert the functionality, but it will need to be around 6 total records inserted of 4 different object types to adequately test the functionality. Would you like me to write a test that does actual record insertion to test this? |
|
Have this one updated to be off of release v6.11.0. I think the only thing up in the air with this one is whether or not it needs a full integration test with record creation. I don't think any level of mocking can do much with it. |
Description
Type of Change
Changes Made
Queryableinterface was modifiedRelated Issues
Fixes #235
Closes #
Testing
npm test)npm run lint)npm run prettier:verify)Screenshots
Checklist
Additional Notes