File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ describe('Component: PixImage', () => {
12
12
} )
13
13
14
14
describe ( 'Computed Property : Image' , ( ) => {
15
- it ( 'should return the same image object if there is an alt' , ( ) => {
15
+ it ( 'should return the same image object if there is an alt' , async ( ) => {
16
16
// Given
17
17
const imageWithAlt = {
18
18
alt : 'Alternative Message' ,
@@ -25,13 +25,13 @@ describe('Component: PixImage', () => {
25
25
}
26
26
27
27
// When
28
- component . setProps ( { field : imageWithAlt } )
28
+ await component . setProps ( { field : imageWithAlt } )
29
29
30
30
// Then
31
31
expect ( component . vm . image ) . toEqual ( imageWithAlt )
32
32
} )
33
33
34
- it ( 'should return the image object with empty alt and role when there is not alt' , ( ) => {
34
+ it ( 'should return the image object with empty alt and role when there is not alt' , async ( ) => {
35
35
// Given
36
36
const imageWithoutAlt = {
37
37
alt : null ,
@@ -47,7 +47,7 @@ describe('Component: PixImage', () => {
47
47
expectedImage . role = 'presentation'
48
48
49
49
// When
50
- component . setProps ( { field : imageWithoutAlt } )
50
+ await component . setProps ( { field : imageWithoutAlt } )
51
51
52
52
// Then
53
53
expect ( component . vm . image ) . toEqual ( expectedImage )
You can’t perform that action at this time.
0 commit comments