Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit dfbddfb

Browse files
committed
fix: update image src attr
1 parent 1cf9673 commit dfbddfb

File tree

5 files changed

+4
-16
lines changed

5 files changed

+4
-16
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ on:
77
# Trigger the workflow on push or pull request,
88
# but only for the master branch
99
push:
10-
branches-ignore:
11-
- master
10+
branches:
11+
- develop
1212
pull_request:
13-
branches-ignore:
14-
- master
13+
branches:
14+
- develop
1515

1616
jobs:
1717
build:

packages/chakra-ui-core/src/CAvatar/CAvatar.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,6 @@ const CAvatar = {
252252
alt: this.name,
253253
src: this.src
254254
},
255-
domProps: {
256-
src: this.src
257-
}
258255
})
259256
}
260257

packages/chakra-ui-core/src/CAvatar/tests/CAvatar.test.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ beforeAll(() => {
1212
// eslint-disable-next-line accessor-pairs
1313
Object.defineProperty(global.Image.prototype, 'src', {
1414
set (src) {
15-
// Mock the Image.prototype.onload/onerror implementations
16-
this.onload = jest.fn().mockImplementation(fn => fn)
17-
this.onerror = jest.fn().mockImplementation(err => err)
1815
if (src === LOAD_FAILURE_SRC) {
1916
setTimeout(() => this.onerror(new Error('mocked error')))
2017
} else if (src === LOAD_SUCCESS_SRC) {

packages/chakra-ui-core/src/CAvatarGroup/tests/CAvatarGroup.test.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ beforeAll(() => {
1313
// eslint-disable-next-line accessor-pairs
1414
Object.defineProperty(global.Image.prototype, 'src', {
1515
set (src) {
16-
// Mock the Image.prototype.onload/onerror implementations
17-
this.onload = jest.fn().mockImplementation(fn => fn)
18-
this.onerror = jest.fn().mockImplementation(err => err)
1916
if (src === LOAD_FAILURE_SRC) {
2017
setTimeout(() => this.onerror(new Error('mocked error')))
2118
} else if (src === LOAD_SUCCESS_SRC) {

packages/chakra-ui-core/src/CImage/tests/CImage.test.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ beforeAll(() => {
1212
// eslint-disable-next-line accessor-pairs
1313
Object.defineProperty(global.Image.prototype, 'src', {
1414
set (src) {
15-
// Mock the Image.prototype.onload/onerror implementations
16-
this.onload = jest.fn().mockImplementation(fn => fn)
17-
this.onerror = jest.fn().mockImplementation(err => err)
1815
if (src === LOAD_FAILURE_SRC) {
1916
setTimeout(() => this.onerror(new Error('mocked error')))
2017
} else if (src === LOAD_SUCCESS_SRC) {

0 commit comments

Comments
 (0)