mirror of
https://github.com/hanzoai/vitest.git
synced 2026-10-30 14:46:34 +00:00
18 lines
241 B
TypeScript
18 lines
241 B
TypeScript
import { test } from 'vitest';
|
|
|
|
test('no name object', () => {
|
|
throw { noName: 'hi' };
|
|
});
|
|
|
|
test('string', () => {
|
|
throw "hi";
|
|
});
|
|
|
|
test('number', () => {
|
|
throw 1234;
|
|
});
|
|
|
|
test('number name object', () => {
|
|
throw { name: 1234 };
|
|
});
|