This repository was archived by the owner on Sep 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +4
-16
lines changed
packages/chakra-ui-core/src Expand file tree Collapse file tree 5 files changed +4
-16
lines changed Original file line number Diff line number Diff line change 7
7
# Trigger the workflow on push or pull request,
8
8
# but only for the master branch
9
9
push :
10
- branches-ignore :
11
- - master
10
+ branches :
11
+ - develop
12
12
pull_request :
13
- branches-ignore :
14
- - master
13
+ branches :
14
+ - develop
15
15
16
16
jobs :
17
17
build :
Original file line number Diff line number Diff line change @@ -252,9 +252,6 @@ const CAvatar = {
252
252
alt : this . name ,
253
253
src : this . src
254
254
} ,
255
- domProps : {
256
- src : this . src
257
- }
258
255
} )
259
256
}
260
257
Original file line number Diff line number Diff line change @@ -12,9 +12,6 @@ beforeAll(() => {
12
12
// eslint-disable-next-line accessor-pairs
13
13
Object . defineProperty ( global . Image . prototype , 'src' , {
14
14
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 )
18
15
if ( src === LOAD_FAILURE_SRC ) {
19
16
setTimeout ( ( ) => this . onerror ( new Error ( 'mocked error' ) ) )
20
17
} else if ( src === LOAD_SUCCESS_SRC ) {
Original file line number Diff line number Diff line change @@ -13,9 +13,6 @@ beforeAll(() => {
13
13
// eslint-disable-next-line accessor-pairs
14
14
Object . defineProperty ( global . Image . prototype , 'src' , {
15
15
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 )
19
16
if ( src === LOAD_FAILURE_SRC ) {
20
17
setTimeout ( ( ) => this . onerror ( new Error ( 'mocked error' ) ) )
21
18
} else if ( src === LOAD_SUCCESS_SRC ) {
Original file line number Diff line number Diff line change @@ -12,9 +12,6 @@ beforeAll(() => {
12
12
// eslint-disable-next-line accessor-pairs
13
13
Object . defineProperty ( global . Image . prototype , 'src' , {
14
14
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 )
18
15
if ( src === LOAD_FAILURE_SRC ) {
19
16
setTimeout ( ( ) => this . onerror ( new Error ( 'mocked error' ) ) )
20
17
} else if ( src === LOAD_SUCCESS_SRC ) {
You can’t perform that action at this time.
0 commit comments