mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-01 22:10:27 +00:00
7 lines
222 B
TypeScript
7 lines
222 B
TypeScript
// @ts-nocheck
|
|
import { invariant } from '../../src/utils/invariant';
|
|
|
|
it('invariant', () => {
|
|
expect(() => invariant(true)).not.toThrow();
|
|
expect(() => invariant(false, 'abc', 'xxx')).toThrow(/Invariant failed:/);
|
|
}); |