2020-08-24 08:08:39 -07:00
|
|
|
import { fromJS } from 'immutable';
|
2022-01-10 14:25:06 -08:00
|
|
|
|
2022-01-10 14:01:24 -08:00
|
|
|
import config_db from 'soapbox/__fixtures__/config_db.json';
|
2022-01-10 14:25:06 -08:00
|
|
|
|
2022-01-10 14:01:24 -08:00
|
|
|
import { ConfigDB } from '../config_db';
|
2020-08-24 08:08:39 -07:00
|
|
|
|
|
|
|
test('find', () => {
|
|
|
|
const configs = fromJS(config_db).get('configs');
|
|
|
|
expect(ConfigDB.find(configs, ':phoenix', ':json_library')).toEqual(fromJS({
|
|
|
|
group: ':phoenix',
|
|
|
|
key: ':json_library',
|
|
|
|
value: 'Jason',
|
|
|
|
}));
|
|
|
|
});
|