Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('strips up to base directory from reference if found', () => {
const result = buildReference(
{ msgid: 'Hello' },
Object.assign({}, state, {
opts: {
includeReference: true,
baseDir: 'project',
},
}))
expect(result.reference).toBe('js/code.js')
})