mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-31 09:41:46 +00:00
300e3a616c
* test: reduce oversized expectation literals to representative examples * test: shrink oversized fixtures instead of trimming assertions Cut the real-world fixtures down to a representative set of entries that still covers every parser shape, and assert the complete output again with a single toEqual.
22 lines
658 B
TypeScript
22 lines
658 B
TypeScript
import { Fixtures } from '~test/fixtures.ts';
|
|
import { extractLockFileEntries } from './locked-version.ts';
|
|
|
|
const gemLockFile = Fixtures.get('Gemfile.rails.lock');
|
|
|
|
describe('modules/manager/bundler/gemfile', () => {
|
|
it('matches the expected output', () => {
|
|
const res = extractLockFileEntries(gemLockFile);
|
|
expect(Object.fromEntries(res)).toEqual({
|
|
'activerecord-jdbc-adapter': '52.1',
|
|
'activerecord-jdbcsqlite3-adapter': '52.1',
|
|
'azure-core': '0.1.14',
|
|
'azure-storage': '0.15.0.preview',
|
|
listen: '3.1.5',
|
|
nokogiri: '1.9.1',
|
|
pg: '1.1.3',
|
|
rake: '12.3.1',
|
|
redcarpet: '3.2.3',
|
|
});
|
|
});
|
|
});
|