Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: should not trigger isImageValid.then when src changed #281

Merged
merged 3 commits into from
Sep 20, 2023

Conversation

linxianxi
Copy link
Contributor

@vercel
Copy link

vercel bot commented Sep 20, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
image ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 20, 2023 6:14am

@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Merging #281 (e4005e5) into master (cbf9d8a) will increase coverage by 0.00%.
Report is 2 commits behind head on master.
The diff coverage is 100.00%.

❗ Current head e4005e5 differs from pull request most recent head 58450e5. Consider uploading reports for the commit 58450e5 to get more accurate results

@@           Coverage Diff           @@
##           master     #281   +/-   ##
=======================================
  Coverage   97.90%   97.91%           
=======================================
  Files          13       13           
  Lines         382      383    +1     
  Branches      108      107    -1     
=======================================
+ Hits          374      375    +1     
  Misses          7        7           
  Partials        1        1           
Files Changed Coverage Δ
src/hooks/useStatus.ts 96.00% <100.00%> (+0.16%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

});

expect(container.querySelector('.rc-image-mask')).toBeFalsy();
});

it('should change image, not error', () => {
it('should change image, not error', async () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

老的 test case 有,但是实现逻辑变了导致它其实什么都没有测

@zombieJ zombieJ merged commit 9d1e7a4 into react-component:master Sep 20, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Images 异步请求的时候返回的Url没有渲染出来 Shows fallback although image is available
2 participants