nightTab/tests/utility/makePath.test.ts
2021-10-30 09:57:34 +01:00

7 lines
255 B
TypeScript

import { makePath } from '../../src/utility/makePath';
test('makePath correctly parses the dot notation', () => {
const input = 'theme.accent.rgb.r';
const result = ['theme', 'accent', 'rgb', 'r'];
expect(makePath(input)).toStrictEqual(result);
});