Skip to content

Commit

Permalink
Add and additional assert
Browse files Browse the repository at this point in the history
Just to be sure that concern instance is not lost.
  • Loading branch information
aedart committed Feb 16, 2024
1 parent 4b55238 commit a9f05ea
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,14 @@ describe('@aedart/support/concerns', () => {
expect(result)
.withContext('Property either not set or incorrect value returned')
.toBe(message);

// ----------------------------------------------------------------------------------- //

const instance = container.get(A);

expect(instance.message)
.withContext('Fatal: concern instance has changed, property value no longer retained')
.toEqual(message);
});
});
});

0 comments on commit a9f05ea

Please sign in to comment.