bigbuffet-rw/app/soapbox/utils/__tests__/config-db.test.ts
2022-11-16 08:34:55 -05:00

14 lines
418 B
TypeScript

import { List as ImmutableList, fromJS } from 'immutable';
import config_db from 'soapbox/__fixtures__/config_db.json';
import { ConfigDB } from '../config-db';
test('find', () => {
const configs = fromJS(config_db).get('configs');
expect(ConfigDB.find(configs as ImmutableList<any>, ':phoenix', ':json_library')).toEqual(fromJS({
group: ':phoenix',
key: ':json_library',
value: 'Jason',
}));
});