import gemspecLinker from '~/vue_shared/components/source_viewer/plugins/utils/gemspec_linker';
describe('Highlight.js plugin for linking gemspec dependencies', () => {
it('mutates the input value by wrapping dependency names in anchors', () => {
const inputValue =
's.add_dependency('rugged', '~> 0.24.0')';
const outputValue =
's.add_dependency('rugged', '~> 0.24.0')';
const hljsResultMock = { value: inputValue };
const output = gemspecLinker(hljsResultMock);
expect(output).toBe(outputValue);
});
});