Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.add('files with comments', () => {
const version = defaultVersion;
const store = createStoreWithVersion({ version });
store.dispatch(versionsActions.expandTree({ versionId: version.id }));
dispatchComments({
store,
versionId: version.id,
comments: [
createFakeExternalComment({
filename: version.file.entries['manifest.json'].path,
}),
createFakeExternalComment({
filename:
version.file.entries['jquery-ui/js/jquery-1.7.1.min.js'].path,
}),
createFakeExternalComment({
filename:
version.file.entries['background-scripts/libs/jquery.min.js'].path,
}),
createFakeExternalComment({
filename: version.file.entries['lib/compat.js'].path,
}),
],
});
return <div>{render({ store })}</div>;
});