Skip to content

Commit c5b29e4

Browse files
chore: add assertion to context test
1 parent bfbb5ca commit c5b29e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/@lwc/shared/src/__tests__/context.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ describe('context', () => {
5353
expect(() => {
5454
setContextKeys(mockContextKeys2);
5555
}).toThrow('`setContextKeys` cannot be called more than once');
56+
57+
expect(getContextKeys()).toBe(mockContextKeys1);
5658
});
5759

5860
it('should return undefined when getting context keys before setting them', () => {

0 commit comments

Comments
 (0)