Commit 442252c4 authored by Lyza Danger Gardner's avatar Lyza Danger Gardner Committed by Lyza Gardner

Fix trailing commas per prettier complaint

parent 3a7822cd
...@@ -37,7 +37,7 @@ function ExportAnnotations({ annotationsExporter }: ExportAnnotationsProps) { ...@@ -37,7 +37,7 @@ function ExportAnnotations({ annotationsExporter }: ExportAnnotationsProps) {
const exportAnnotations = () => { const exportAnnotations = () => {
const filename = `${inputRef.current!.value}.json`; const filename = `${inputRef.current!.value}.json`;
const exportData = annotationsExporter.buildExportContent( const exportData = annotationsExporter.buildExportContent(
exportableAnnotations exportableAnnotations,
); );
downloadJSONFile(exportData, filename); downloadJSONFile(exportData, filename);
}; };
......
...@@ -22,7 +22,7 @@ describe('ExportAnnotations', () => { ...@@ -22,7 +22,7 @@ describe('ExportAnnotations', () => {
<ExportAnnotations <ExportAnnotations
annotationsExporter={fakeAnnotationsExporter} annotationsExporter={fakeAnnotationsExporter}
{...props} {...props}
/> />,
); );
beforeEach(() => { beforeEach(() => {
...@@ -87,12 +87,12 @@ describe('ExportAnnotations', () => { ...@@ -87,12 +87,12 @@ describe('ExportAnnotations', () => {
assert.include( assert.include(
wrapperSingular.find('[data-testid="export-count"]').text(), wrapperSingular.find('[data-testid="export-count"]').text(),
'Export 1 annotation in a file' 'Export 1 annotation in a file',
); );
assert.include( assert.include(
wrapperPlural.find('[data-testid="export-count"]').text(), wrapperPlural.find('[data-testid="export-count"]').text(),
'Export 2 annotations in a file' 'Export 2 annotations in a file',
); );
}); });
...@@ -116,7 +116,7 @@ describe('ExportAnnotations', () => { ...@@ -116,7 +116,7 @@ describe('ExportAnnotations', () => {
assert.calledOnce(fakeAnnotationsExporter.buildExportContent); assert.calledOnce(fakeAnnotationsExporter.buildExportContent);
assert.calledWith( assert.calledWith(
fakeAnnotationsExporter.buildExportContent, fakeAnnotationsExporter.buildExportContent,
annotationsToExport annotationsToExport,
); );
}); });
...@@ -132,7 +132,7 @@ describe('ExportAnnotations', () => { ...@@ -132,7 +132,7 @@ describe('ExportAnnotations', () => {
assert.calledWith( assert.calledWith(
fakeDownloadJSONFile, fakeDownloadJSONFile,
sinon.match.object, sinon.match.object,
'my-filename.json' 'my-filename.json',
); );
}); });
}); });
...@@ -147,7 +147,7 @@ describe('ExportAnnotations', () => { ...@@ -147,7 +147,7 @@ describe('ExportAnnotations', () => {
assert.include( assert.include(
wrapper.find('[data-testid="no-annotations-message"]').text(), wrapper.find('[data-testid="no-annotations-message"]').text(),
'There are no annotations available for export' 'There are no annotations available for export',
); );
}); });
...@@ -155,7 +155,7 @@ describe('ExportAnnotations', () => { ...@@ -155,7 +155,7 @@ describe('ExportAnnotations', () => {
const wrapper = createComponent(); const wrapper = createComponent();
assert.isTrue( assert.isTrue(
wrapper.find('button[data-testid="export-button"]').props().disabled wrapper.find('button[data-testid="export-button"]').props().disabled,
); );
}); });
...@@ -176,12 +176,12 @@ describe('ExportAnnotations', () => { ...@@ -176,12 +176,12 @@ describe('ExportAnnotations', () => {
assert.include( assert.include(
wrapperSingular.find('[data-testid="drafts-message"]').text(), wrapperSingular.find('[data-testid="drafts-message"]').text(),
'You have 1 unsaved annotation that' 'You have 1 unsaved annotation that',
); );
assert.include( assert.include(
wrapperPlural.find('[data-testid="drafts-message"]').text(), wrapperPlural.find('[data-testid="drafts-message"]').text(),
'You have 2 unsaved annotations that' 'You have 2 unsaved annotations that',
); );
}); });
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment