Skip to contentOpen History to see the last commit
context.test.ts
8 lines279 Bytes
1import { describe, expect, it } from 'vitest' 2import { getIsRestoringContext } from '../context' 4describe('getIsRestoringContext', () => { 5 it('Should not throw when called outside of a component', async () => { 6 expect(() => getIsRestoringContext()).to.not.throw()