添加设定界面 - #18 #21

Merged
lsr merged 24 commits from feat/settings into main 2023-06-10 15:23:21 +00:00
Showing only changes of commit 009aabd2dd - Show all commits

View File

@ -0,0 +1,24 @@
import { enumObject } from '../objects';
test('it should ignore and not crash with non-object', () => {
expect(Array.from(enumObject('string' as never))).toEqual([]);
});
test('it should ignore and not crash with null', () => {
expect(Array.from(enumObject(null))).toEqual([]);
});
test('it be able to iterate object', () => {
expect(Array.from(enumObject({ a: '1', b: '2' }))).toMatchInlineSnapshot(`
[
[
"a",
"1",
],
[
"b",
"2",
],
]
`);
});