Error in testing when updating arguments passed to stripe components
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript
- 领域
- frontend
调研方向
从 addon/components/stripe-element.js 的第54-57行开始,然后检查 StripeMock 类并运行测试套件,以复现缺失的 update 方法。为渲染后更新组件参数添加测试覆盖;当 mock 支持该调用且测试在没有 TypeError 的情况下通过时,即可认为该 issue 已完成。
由索引模型根据 Issue 内容生成。
描述
Even though we have turned the mock config option on during testing, we still get an error about a missing method, update, when running our test suite:
Uncaught TypeError:
Ember.get(...).updateis not a function
It's pointing to here:
I'm guessing this is just because that method isn't mocked in your StripeMock class and that's merely because you don't have any tests that try to update the attributes after rendering. Replacing your mock with our own copy which also mocks the update function makes our tests pass again.
- 主要语言
- JavaScript
- 星标
- 64
- 派生
- 39
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
code-corps/ember-stripe-elements 的其他 Issue
-
难度 5/5 一周以上 新手友好度 25/100
code-corps/ember-stripe-elements#77 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 10/100
code-corps/ember-stripe-elements#76 · 3 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 45/100
code-corps/ember-stripe-elements#65 · 2 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
code-corps/ember-stripe-elements#55 · 4 条评论 ·
-
semantic-release
难度 4/5 3-5 天 新手友好度 25/100
code-corps/ember-stripe-elements#38 · 90 条评论 ·
查看 code-corps/ember-stripe-elements 的全部 Issue
相似的 Issue
-
automation models
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
needs:triage
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
enhancement status: needs triage
难度 2/5 1-3 小时 新手友好度 88/100
mastra-ai/mastra#25508 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
agentic-workflows
难度 1/5 1 小时以内 新手友好度 72/100
githubnext/gh-aw-cao#15017 ·
维护者通常 1 天内回复