René's URL Explorer Experiment


Title: Object destructuring + rest doesn't work · Issue #129 · ffMathy/FluffySpoon.JavaScript.Testing.Faking · GitHub

Open Graph Title: Object destructuring + rest doesn't work · Issue #129 · ffMathy/FluffySpoon.JavaScript.Testing.Faking

X Title: Object destructuring + rest doesn't work · Issue #129 · ffMathy/FluffySpoon.JavaScript.Testing.Faking

Description: Describe the bug I cant use a Substitute mock for code that uses object destructuring + rest To Reproduce import Substitute from "@fluffy-spoon/substitute"; type Entity = { id: number; name: string; lastName: string }; const copyEntity =...

Open Graph Description: Describe the bug I cant use a Substitute mock for code that uses object destructuring + rest To Reproduce import Substitute from "@fluffy-spoon/substitute"; type Entity = { id: number; name: string...

X Description: Describe the bug I cant use a Substitute mock for code that uses object destructuring + rest To Reproduce import Substitute from "@fluffy-spoon/substitute"; type Entity = { id: number; na...

Opengraph URL: https://github.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking/issues/129

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Object destructuring + rest doesn't work","articleBody":"**Describe the bug**\r\nI cant use a Substitute mock for code that uses object destructuring + rest\r\n\r\n**To Reproduce**\r\n```typescript\r\nimport Substitute from \"@fluffy-spoon/substitute\";\r\n\r\ntype Entity = { id: number; name: string; lastName: string };\r\n\r\nconst copyEntity = (entity: Entity) =\u003e {\r\n  const { id, ...params } = entity;\r\n  console.log(params);\r\n};\r\n\r\nconst mockEntity = Substitute.for\u003cEntity\u003e();\r\nmockEntity.id.returns!(1);\r\nmockEntity.name.returns!('test name');\r\nmockEntity.lastName.returns!('test last name');\r\n\r\ncopyEntity(mockEntity); // empty object\r\ncopyEntity({id:1, name: 'test name', lastName: 'test last name'})  // {name: 'test name', lastName: 'test last name'}\r\n\r\n```\r\nCodesandbox:\r\nhttps://codesandbox.io/s/flamboyant-sea-o5zf4?file=/src/index.ts:0-469\r\n\r\n**Expected behavior**\r\nI should be able to test functions using destructuring with the rest pattern\r\n\r\n**Environment**\r\n- Typescript version: `3.9.3 `\r\n- substitute.js version: `1.145.0 `\r\n- Node version: `12 `\r\n\r\n\r\n","author":{"url":"https://github.com/0xjocke","@type":"Person","name":"0xjocke"},"datePublished":"2020-09-17T05:38:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/129/FluffySpoon.JavaScript.Testing.Faking/issues/129"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7ada4a71-ee9a-20b2-9b81-4b31cc37e412
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD934:938B4:1516B63:1B2EC93:697FA500
html-safe-nonce7b89847f52d43e84581d2e10c6a7893be98ff65c76d7b4022ffbe7adbd20a462
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTM0OjkzOEI0OjE1MTZCNjM6MUIyRUM5Mzo2OTdGQTUwMCIsInZpc2l0b3JfaWQiOiI3MDQ5NTQ3Nzg5OTkwMDc3Njk2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacdc46b6dc31f3d13f748c4d244556a2b5a8149fcdcc3d4f2f5d2d16c0308125f9
hovercard-subject-tagissue:703282976
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ffMathy/FluffySpoon.JavaScript.Testing.Faking/129/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4bdbebb9e91200c983425a6e01bfd86803419c242c2078870965a76c3ee9fe91/ffMathy/FluffySpoon.JavaScript.Testing.Faking/issues/129
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4bdbebb9e91200c983425a6e01bfd86803419c242c2078870965a76c3ee9fe91/ffMathy/FluffySpoon.JavaScript.Testing.Faking/issues/129
og:image:altDescribe the bug I cant use a Substitute mock for code that uses object destructuring + rest To Reproduce import Substitute from "@fluffy-spoon/substitute"; type Entity = { id: number; name: string...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:username0xjocke
hostnamegithub.com
expected-hostnamegithub.com
None60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6
turbo-cache-controlno-preview
go-importgithub.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking git https://github.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking.git
octolytics-dimension-user_id2824010
octolytics-dimension-user_loginffMathy
octolytics-dimension-repository_id139153585
octolytics-dimension-repository_nwoffMathy/FluffySpoon.JavaScript.Testing.Faking
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id139153585
octolytics-dimension-repository_network_root_nwoffMathy/FluffySpoon.JavaScript.Testing.Faking
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7c85641c598ad130c74f7bcc27f58575cac69551
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking/issues/129#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FffMathy%2FFluffySpoon.JavaScript.Testing.Faking%2Fissues%2F129
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FffMathy%2FFluffySpoon.JavaScript.Testing.Faking%2Fissues%2F129
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=ffMathy%2FFluffySpoon.JavaScript.Testing.Faking
Reloadhttps://patch-diff.githubusercontent.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking/issues/129
Reloadhttps://patch-diff.githubusercontent.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking/issues/129
Reloadhttps://patch-diff.githubusercontent.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking/issues/129
ffMathy https://patch-diff.githubusercontent.com/ffMathy
FluffySpoon.JavaScript.Testing.Fakinghttps://patch-diff.githubusercontent.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking
Please reload this pagehttps://patch-diff.githubusercontent.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking/issues/129
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FffMathy%2FFluffySpoon.JavaScript.Testing.Faking
Fork 22 https://patch-diff.githubusercontent.com/login?return_to=%2FffMathy%2FFluffySpoon.JavaScript.Testing.Faking
Star 211 https://patch-diff.githubusercontent.com/login?return_to=%2FffMathy%2FFluffySpoon.JavaScript.Testing.Faking
Code https://patch-diff.githubusercontent.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking
Issues 3 https://patch-diff.githubusercontent.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking/issues
Pull requests 3 https://patch-diff.githubusercontent.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking/pulls
Actions https://patch-diff.githubusercontent.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking/actions
Projects 0 https://patch-diff.githubusercontent.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking/projects
Security 0 https://patch-diff.githubusercontent.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking/security
Insights https://patch-diff.githubusercontent.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking/pulse
Code https://patch-diff.githubusercontent.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking
Issues https://patch-diff.githubusercontent.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking/issues
Pull requests https://patch-diff.githubusercontent.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking/pulls
Actions https://patch-diff.githubusercontent.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking/actions
Projects https://patch-diff.githubusercontent.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking/projects
Security https://patch-diff.githubusercontent.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking/security
Insights https://patch-diff.githubusercontent.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking/issues/129
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking/issues/129
Object destructuring + rest doesn't workhttps://patch-diff.githubusercontent.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking/issues/129#top
bugSomething isn't workinghttps://github.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking/issues?q=state%3Aopen%20label%3A%22bug%22
v2.0https://github.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking/milestone/1
https://github.com/0xjocke
https://github.com/0xjocke
0xjockehttps://github.com/0xjocke
on Sep 17, 2020https://github.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking/issues/129#issue-703282976
https://codesandbox.io/s/flamboyant-sea-o5zf4?file=/src/index.ts:0-469https://codesandbox.io/s/flamboyant-sea-o5zf4?file=/src/index.ts:0-469
bugSomething isn't workinghttps://github.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking/issues?q=state%3Aopen%20label%3A%22bug%22
v2.0No due datehttps://github.com/ffMathy/FluffySpoon.JavaScript.Testing.Faking/milestone/1
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.