Use expect's instanceOf and toHaveProperty methods
This commit is contained in:
@@ -58,7 +58,7 @@ const inst = {
|
||||
},
|
||||
}
|
||||
|
||||
expect(inst.hasOwnProperty('decoratedProps')).toBeTruthy();
|
||||
expect(inst).toHaveProperty('decoratedProps');
|
||||
expect(inst.decoratedProps).toEqual([
|
||||
"enumconfwrite",
|
||||
"enumconf",
|
||||
|
||||
@@ -58,7 +58,7 @@ const inst = {
|
||||
},
|
||||
}
|
||||
|
||||
expect(inst.hasOwnProperty('decoratedProps')).toBeTruthy();
|
||||
expect(inst).toHaveProperty('decoratedProps');
|
||||
expect(inst.decoratedProps).toEqual([
|
||||
"enumconfwrite",
|
||||
"enumconf",
|
||||
|
||||
Reference in New Issue
Block a user