diff --git a/apps/docs/src/renderer/components/Ribbon.tsx b/apps/docs/src/renderer/components/Ribbon.tsx index 07ab6c2..2bb4cbb 100644 --- a/apps/docs/src/renderer/components/Ribbon.tsx +++ b/apps/docs/src/renderer/components/Ribbon.tsx @@ -80,9 +80,15 @@ import { IconAlignRight, IconAutoFit, IconBorderAll, + IconBorderBottom, IconBorderInner, + IconBorderInsideH, + IconBorderInsideV, + IconBorderLeft, IconBorderNone, IconBorderOuter, + IconBorderRight, + IconBorderTop, IconBullets, IconCaret, IconCellAlignBottom, @@ -1040,14 +1046,42 @@ function RibbonInner({ : 23.28 type BorderSide = { style: string; szEighths?: number; color?: string } - /** Apply borders to selected cells: all/outer/inner compute the four sides per cell from selection geometry; none clears explicitly */ - const applyCellBorders = (mode: 'all' | 'outer' | 'inner' | 'none') => { + /** Apply borders to selected cells: all/outer/inner compute the four sides per cell from selection geometry; none clears explicitly. + * top/bottom/left/right apply only to that edge of the selection. insideH/insideV + * write the table-level tblBorders attr (per-cell insideH/insideV has no renderer): + * they apply to the whole table, as their tips state. */ + const applyCellBorders = ( + mode: + | 'all' + | 'outer' + | 'inner' + | 'none' + | 'top' + | 'bottom' + | 'left' + | 'right' + | 'insideH' + | 'insideV', + ) => { if (!canEdit || !isInTable(editor.state)) return editor.view.focus() const { state, view } = editor const rect = selectedRect(state) const solid: BorderSide = { style: 'single', szEighths: borderSz, color: borderColor } const none: BorderSide = { style: 'none' } + if (mode === 'insideH' || mode === 'insideV') { + const tablePos = rect.tableStart - 1 + const tableNode = state.doc.nodeAt(tablePos) + if (!tableNode || tableNode.type.name !== 'docTable') return + const prev = (tableNode.attrs.borders as Record | null) ?? {} + view.dispatch( + state.tr.setNodeMarkup(tablePos, undefined, { + ...tableNode.attrs, + borders: { ...prev, [mode]: solid }, + }), + ) + return + } let tr = state.tr const seen = new Set() for (let row = rect.top; row < rect.bottom; row++) { @@ -1073,6 +1107,7 @@ function RibbonInner({ else if (mode === 'none') next[side] = none else if (mode === 'outer' && edge[side]) next[side] = solid else if (mode === 'inner' && !edge[side]) next[side] = solid + else if (mode === side && edge[side]) next[side] = solid } tr = tr.setNodeMarkup(pos, undefined, { ...node.attrs, borders: next }) } @@ -2460,6 +2495,50 @@ function RibbonInner({ {t('ribbonNoBorders')} +
+ + + + + + +
+ ) +} + +export function IconBorderTop(props: IconProps) { + return ( + + + + + ) +} + +export function IconBorderBottom(props: IconProps) { + return ( + + + + + ) +} + +export function IconBorderLeft(props: IconProps) { + return ( + + + + + ) +} + +export function IconBorderRight(props: IconProps) { + return ( + + + + + ) +} + +export function IconBorderInsideH(props: IconProps) { + return ( + + + + + ) +} + +export function IconBorderInsideV(props: IconProps) { + return ( + + + + + ) +} + /* ---------- Design ---------- */ export function IconTheme(props: IconProps) { diff --git a/apps/docs/src/renderer/i18n/ribbon/ar.ts b/apps/docs/src/renderer/i18n/ribbon/ar.ts index b643dd4..78869d6 100644 --- a/apps/docs/src/renderer/i18n/ribbon/ar.ts +++ b/apps/docs/src/renderer/i18n/ribbon/ar.ts @@ -147,6 +147,10 @@ export const ar = { ribbonOuterBordersTip: 'حدود على الحافة الخارجية للتحديد فقط', ribbonInnerBorders: 'الحدود الداخلية', ribbonInnerBordersTip: 'حدود داخل التحديد فقط', + ribbonTableInsideHBorders: 'Inside Horizontal', + ribbonTableInsideHBordersTip: 'Inside horizontal borders for the whole table', + ribbonTableInsideVBorders: 'Inside Vertical', + ribbonTableInsideVBordersTip: 'Inside vertical borders for the whole table', ribbonClearBordersTip: 'مسح حدود الخلايا المحددة', ribbonBorderColor: 'لون الحدود', ribbonBorderWidth: 'سُمك الحدود', diff --git a/apps/docs/src/renderer/i18n/ribbon/de.ts b/apps/docs/src/renderer/i18n/ribbon/de.ts index 4d0c211..4c810df 100644 --- a/apps/docs/src/renderer/i18n/ribbon/de.ts +++ b/apps/docs/src/renderer/i18n/ribbon/de.ts @@ -151,6 +151,10 @@ export const de = { ribbonOuterBordersTip: 'Rahmenlinien nur am äußeren Rand der Auswahl', ribbonInnerBorders: 'Rahmenlinien innen', ribbonInnerBordersTip: 'Rahmenlinien nur innerhalb der Auswahl', + ribbonTableInsideHBorders: 'Inside Horizontal', + ribbonTableInsideHBordersTip: 'Inside horizontal borders for the whole table', + ribbonTableInsideVBorders: 'Inside Vertical', + ribbonTableInsideVBordersTip: 'Inside vertical borders for the whole table', ribbonClearBordersTip: 'Rahmenlinien der ausgewählten Zellen entfernen', ribbonBorderColor: 'Rahmenfarbe', ribbonBorderWidth: 'Rahmenstärke', diff --git a/apps/docs/src/renderer/i18n/ribbon/en.ts b/apps/docs/src/renderer/i18n/ribbon/en.ts index 6196a20..749f2b6 100644 --- a/apps/docs/src/renderer/i18n/ribbon/en.ts +++ b/apps/docs/src/renderer/i18n/ribbon/en.ts @@ -148,6 +148,10 @@ export const en = { ribbonOuterBordersTip: 'Borders on the outer edge of the selection only', ribbonInnerBorders: 'Inside Borders', ribbonInnerBordersTip: 'Borders inside the selection only', + ribbonTableInsideHBorders: 'Inside Horizontal', + ribbonTableInsideHBordersTip: 'Inside horizontal borders for the whole table', + ribbonTableInsideVBorders: 'Inside Vertical', + ribbonTableInsideVBordersTip: 'Inside vertical borders for the whole table', ribbonClearBordersTip: 'Clear borders from the selected cells', ribbonBorderColor: 'Border color', ribbonBorderWidth: 'Border weight', diff --git a/apps/docs/src/renderer/i18n/ribbon/es.ts b/apps/docs/src/renderer/i18n/ribbon/es.ts index 85e43d7..4e6e58b 100644 --- a/apps/docs/src/renderer/i18n/ribbon/es.ts +++ b/apps/docs/src/renderer/i18n/ribbon/es.ts @@ -151,6 +151,10 @@ export const es = { ribbonOuterBordersTip: 'Bordes solo en el contorno de la selección', ribbonInnerBorders: 'Bordes internos', ribbonInnerBordersTip: 'Bordes solo en el interior de la selección', + ribbonTableInsideHBorders: 'Inside Horizontal', + ribbonTableInsideHBordersTip: 'Inside horizontal borders for the whole table', + ribbonTableInsideVBorders: 'Inside Vertical', + ribbonTableInsideVBordersTip: 'Inside vertical borders for the whole table', ribbonClearBordersTip: 'Borrar los bordes de las celdas seleccionadas', ribbonBorderColor: 'Color del borde', ribbonBorderWidth: 'Grosor del borde', diff --git a/apps/docs/src/renderer/i18n/ribbon/fr.ts b/apps/docs/src/renderer/i18n/ribbon/fr.ts index 34265fe..dcfdde3 100644 --- a/apps/docs/src/renderer/i18n/ribbon/fr.ts +++ b/apps/docs/src/renderer/i18n/ribbon/fr.ts @@ -151,6 +151,10 @@ export const fr = { ribbonOuterBordersTip: 'Bordures uniquement sur le pourtour de la sélection', ribbonInnerBorders: 'Bordures intérieures', ribbonInnerBordersTip: "Bordures uniquement à l'intérieur de la sélection", + ribbonTableInsideHBorders: 'Inside Horizontal', + ribbonTableInsideHBordersTip: 'Inside horizontal borders for the whole table', + ribbonTableInsideVBorders: 'Inside Vertical', + ribbonTableInsideVBordersTip: 'Inside vertical borders for the whole table', ribbonClearBordersTip: 'Effacer les bordures des cellules sélectionnées', ribbonBorderColor: 'Couleur de bordure', ribbonBorderWidth: 'Épaisseur de bordure', diff --git a/apps/docs/src/renderer/i18n/ribbon/he.ts b/apps/docs/src/renderer/i18n/ribbon/he.ts index 19b7f81..eb2cc66 100644 --- a/apps/docs/src/renderer/i18n/ribbon/he.ts +++ b/apps/docs/src/renderer/i18n/ribbon/he.ts @@ -147,6 +147,10 @@ export const he = { ribbonOuterBordersTip: 'גבולות רק בהיקף החיצוני של הבחירה', ribbonInnerBorders: 'גבולות פנימיים', ribbonInnerBordersTip: 'גבולות רק בתוך הבחירה', + ribbonTableInsideHBorders: 'Inside Horizontal', + ribbonTableInsideHBordersTip: 'Inside horizontal borders for the whole table', + ribbonTableInsideVBorders: 'Inside Vertical', + ribbonTableInsideVBordersTip: 'Inside vertical borders for the whole table', ribbonClearBordersTip: 'נקה גבולות מהתאים הנבחרים', ribbonBorderColor: 'צבע גבול', ribbonBorderWidth: 'עובי גבול', diff --git a/apps/docs/src/renderer/i18n/ribbon/hi.ts b/apps/docs/src/renderer/i18n/ribbon/hi.ts index cc5493e..6dd9328 100644 --- a/apps/docs/src/renderer/i18n/ribbon/hi.ts +++ b/apps/docs/src/renderer/i18n/ribbon/hi.ts @@ -150,6 +150,10 @@ export const hi = { ribbonOuterBordersTip: 'केवल चयन के बाहरी किनारे पर बॉर्डर', ribbonInnerBorders: 'भीतरी बॉर्डर', ribbonInnerBordersTip: 'केवल चयन के भीतर बॉर्डर', + ribbonTableInsideHBorders: 'Inside Horizontal', + ribbonTableInsideHBordersTip: 'Inside horizontal borders for the whole table', + ribbonTableInsideVBorders: 'Inside Vertical', + ribbonTableInsideVBordersTip: 'Inside vertical borders for the whole table', ribbonClearBordersTip: 'चयनित कक्षों से बॉर्डर साफ़ करें', ribbonBorderColor: 'बॉर्डर रंग', ribbonBorderWidth: 'बॉर्डर मोटाई', diff --git a/apps/docs/src/renderer/i18n/ribbon/id.ts b/apps/docs/src/renderer/i18n/ribbon/id.ts index 54c7c7d..971643c 100644 --- a/apps/docs/src/renderer/i18n/ribbon/id.ts +++ b/apps/docs/src/renderer/i18n/ribbon/id.ts @@ -149,6 +149,10 @@ export const id = { ribbonOuterBordersTip: 'Batas hanya di tepi luar pilihan', ribbonInnerBorders: 'Batas Dalam', ribbonInnerBordersTip: 'Batas hanya di bagian dalam pilihan', + ribbonTableInsideHBorders: 'Inside Horizontal', + ribbonTableInsideHBordersTip: 'Inside horizontal borders for the whole table', + ribbonTableInsideVBorders: 'Inside Vertical', + ribbonTableInsideVBordersTip: 'Inside vertical borders for the whole table', ribbonClearBordersTip: 'Hapus batas dari sel yang dipilih', ribbonBorderColor: 'Warna batas', ribbonBorderWidth: 'Ketebalan batas', diff --git a/apps/docs/src/renderer/i18n/ribbon/it.ts b/apps/docs/src/renderer/i18n/ribbon/it.ts index a1dd440..0798510 100644 --- a/apps/docs/src/renderer/i18n/ribbon/it.ts +++ b/apps/docs/src/renderer/i18n/ribbon/it.ts @@ -151,6 +151,10 @@ export const it = { ribbonOuterBordersTip: 'Bordi solo sul contorno esterno della selezione', ribbonInnerBorders: 'Bordi interni', ribbonInnerBordersTip: "Bordi solo all'interno della selezione", + ribbonTableInsideHBorders: 'Inside Horizontal', + ribbonTableInsideHBordersTip: 'Inside horizontal borders for the whole table', + ribbonTableInsideVBorders: 'Inside Vertical', + ribbonTableInsideVBordersTip: 'Inside vertical borders for the whole table', ribbonClearBordersTip: 'Rimuovi i bordi dalle celle selezionate', ribbonBorderColor: 'Colore bordo', ribbonBorderWidth: 'Spessore bordo', diff --git a/apps/docs/src/renderer/i18n/ribbon/ja.ts b/apps/docs/src/renderer/i18n/ribbon/ja.ts index a3ecb87..b9f4936 100644 --- a/apps/docs/src/renderer/i18n/ribbon/ja.ts +++ b/apps/docs/src/renderer/i18n/ribbon/ja.ts @@ -158,6 +158,10 @@ export const ja = { ribbonOuterBordersTip: '選択範囲の外側のみに罫線を追加', ribbonInnerBorders: '内側の罫線', ribbonInnerBordersTip: '選択範囲の内側のみに罫線を追加', + ribbonTableInsideHBorders: 'Inside Horizontal', + ribbonTableInsideHBordersTip: 'Inside horizontal borders for the whole table', + ribbonTableInsideVBorders: 'Inside Vertical', + ribbonTableInsideVBordersTip: 'Inside vertical borders for the whole table', ribbonClearBordersTip: '選択したセルの罫線をクリア', ribbonBorderColor: '罫線の色', ribbonBorderWidth: '罫線の太さ', diff --git a/apps/docs/src/renderer/i18n/ribbon/ko.ts b/apps/docs/src/renderer/i18n/ribbon/ko.ts index 060141a..73e5c07 100644 --- a/apps/docs/src/renderer/i18n/ribbon/ko.ts +++ b/apps/docs/src/renderer/i18n/ribbon/ko.ts @@ -156,6 +156,10 @@ export const ko = { ribbonOuterBordersTip: '선택 영역의 바깥쪽에만 테두리 추가', ribbonInnerBorders: '안쪽 테두리', ribbonInnerBordersTip: '선택 영역의 안쪽에만 테두리 추가', + ribbonTableInsideHBorders: 'Inside Horizontal', + ribbonTableInsideHBordersTip: 'Inside horizontal borders for the whole table', + ribbonTableInsideVBorders: 'Inside Vertical', + ribbonTableInsideVBordersTip: 'Inside vertical borders for the whole table', ribbonClearBordersTip: '선택한 셀의 테두리 지우기', ribbonBorderColor: '테두리 색', ribbonBorderWidth: '테두리 두께', diff --git a/apps/docs/src/renderer/i18n/ribbon/ms.ts b/apps/docs/src/renderer/i18n/ribbon/ms.ts index aac2eae..d87e949 100644 --- a/apps/docs/src/renderer/i18n/ribbon/ms.ts +++ b/apps/docs/src/renderer/i18n/ribbon/ms.ts @@ -150,6 +150,10 @@ export const ms = { ribbonOuterBordersTip: 'Sempadan pada bahagian luar pilihan sahaja', ribbonInnerBorders: 'Sempadan Dalam', ribbonInnerBordersTip: 'Sempadan di bahagian dalam pilihan sahaja', + ribbonTableInsideHBorders: 'Inside Horizontal', + ribbonTableInsideHBordersTip: 'Inside horizontal borders for the whole table', + ribbonTableInsideVBorders: 'Inside Vertical', + ribbonTableInsideVBordersTip: 'Inside vertical borders for the whole table', ribbonClearBordersTip: 'Kosongkan sempadan daripada sel yang dipilih', ribbonBorderColor: 'Warna sempadan', ribbonBorderWidth: 'Ketebalan sempadan', diff --git a/apps/docs/src/renderer/i18n/ribbon/nl.ts b/apps/docs/src/renderer/i18n/ribbon/nl.ts index dabae13..3407601 100644 --- a/apps/docs/src/renderer/i18n/ribbon/nl.ts +++ b/apps/docs/src/renderer/i18n/ribbon/nl.ts @@ -152,6 +152,10 @@ export const nl = { ribbonOuterBordersTip: 'Alleen randen aan de buitenkant van de selectie', ribbonInnerBorders: 'Binnenranden', ribbonInnerBordersTip: 'Alleen randen binnen de selectie', + ribbonTableInsideHBorders: 'Inside Horizontal', + ribbonTableInsideHBordersTip: 'Inside horizontal borders for the whole table', + ribbonTableInsideVBorders: 'Inside Vertical', + ribbonTableInsideVBordersTip: 'Inside vertical borders for the whole table', ribbonClearBordersTip: 'Randen van de geselecteerde cellen wissen', ribbonBorderColor: 'Randkleur', ribbonBorderWidth: 'Randdikte', diff --git a/apps/docs/src/renderer/i18n/ribbon/pl.ts b/apps/docs/src/renderer/i18n/ribbon/pl.ts index e5e6ed9..22013bc 100644 --- a/apps/docs/src/renderer/i18n/ribbon/pl.ts +++ b/apps/docs/src/renderer/i18n/ribbon/pl.ts @@ -150,6 +150,10 @@ export const pl = { ribbonOuterBordersTip: 'Krawędzie tylko na zewnętrznym obrysie zaznaczenia', ribbonInnerBorders: 'Krawędzie wewnętrzne', ribbonInnerBordersTip: 'Krawędzie tylko wewnątrz zaznaczenia', + ribbonTableInsideHBorders: 'Inside Horizontal', + ribbonTableInsideHBordersTip: 'Inside horizontal borders for the whole table', + ribbonTableInsideVBorders: 'Inside Vertical', + ribbonTableInsideVBordersTip: 'Inside vertical borders for the whole table', ribbonClearBordersTip: 'Usuń krawędzie z zaznaczonych komórek', ribbonBorderColor: 'Kolor krawędzi', ribbonBorderWidth: 'Grubość krawędzi', diff --git a/apps/docs/src/renderer/i18n/ribbon/pt.ts b/apps/docs/src/renderer/i18n/ribbon/pt.ts index 4b1022f..c53dca5 100644 --- a/apps/docs/src/renderer/i18n/ribbon/pt.ts +++ b/apps/docs/src/renderer/i18n/ribbon/pt.ts @@ -150,6 +150,10 @@ export const pt = { ribbonOuterBordersTip: 'Bordas apenas no contorno externo da seleção', ribbonInnerBorders: 'Bordas Internas', ribbonInnerBordersTip: 'Bordas apenas no interior da seleção', + ribbonTableInsideHBorders: 'Inside Horizontal', + ribbonTableInsideHBordersTip: 'Inside horizontal borders for the whole table', + ribbonTableInsideVBorders: 'Inside Vertical', + ribbonTableInsideVBordersTip: 'Inside vertical borders for the whole table', ribbonClearBordersTip: 'Limpar as bordas das células selecionadas', ribbonBorderColor: 'Cor da borda', ribbonBorderWidth: 'Espessura da borda', diff --git a/apps/docs/src/renderer/i18n/ribbon/ru.ts b/apps/docs/src/renderer/i18n/ribbon/ru.ts index 8944786..fbd117c 100644 --- a/apps/docs/src/renderer/i18n/ribbon/ru.ts +++ b/apps/docs/src/renderer/i18n/ribbon/ru.ts @@ -150,6 +150,10 @@ export const ru = { ribbonOuterBordersTip: 'Границы только по внешнему краю выделения', ribbonInnerBorders: 'Внутренние границы', ribbonInnerBordersTip: 'Границы только внутри выделения', + ribbonTableInsideHBorders: 'Inside Horizontal', + ribbonTableInsideHBordersTip: 'Inside horizontal borders for the whole table', + ribbonTableInsideVBorders: 'Inside Vertical', + ribbonTableInsideVBordersTip: 'Inside vertical borders for the whole table', ribbonClearBordersTip: 'Убрать границы выделенных ячеек', ribbonBorderColor: 'Цвет границы', ribbonBorderWidth: 'Толщина границы', diff --git a/apps/docs/src/renderer/i18n/ribbon/th.ts b/apps/docs/src/renderer/i18n/ribbon/th.ts index a0b05da..87a4156 100644 --- a/apps/docs/src/renderer/i18n/ribbon/th.ts +++ b/apps/docs/src/renderer/i18n/ribbon/th.ts @@ -148,6 +148,10 @@ export const th = { ribbonOuterBordersTip: 'เส้นขอบเฉพาะรอบนอกของส่วนที่เลือกเท่านั้น', ribbonInnerBorders: 'เส้นขอบด้านใน', ribbonInnerBordersTip: 'เส้นขอบเฉพาะด้านในของส่วนที่เลือกเท่านั้น', + ribbonTableInsideHBorders: 'Inside Horizontal', + ribbonTableInsideHBordersTip: 'Inside horizontal borders for the whole table', + ribbonTableInsideVBorders: 'Inside Vertical', + ribbonTableInsideVBordersTip: 'Inside vertical borders for the whole table', ribbonClearBordersTip: 'ล้างเส้นขอบของเซลล์ที่เลือก', ribbonBorderColor: 'สีเส้นขอบ', ribbonBorderWidth: 'ความหนาเส้นขอบ', diff --git a/apps/docs/src/renderer/i18n/ribbon/zh-TW.ts b/apps/docs/src/renderer/i18n/ribbon/zh-TW.ts index 1f7a4c4..7839225 100644 --- a/apps/docs/src/renderer/i18n/ribbon/zh-TW.ts +++ b/apps/docs/src/renderer/i18n/ribbon/zh-TW.ts @@ -146,6 +146,10 @@ export const zhTW = { ribbonOuterBordersTip: '僅選取範圍外側加上框線', ribbonInnerBorders: '內框線', ribbonInnerBordersTip: '僅選取範圍內部加上框線', + ribbonTableInsideHBorders: '內側橫框線', + ribbonTableInsideHBordersTip: '僅對整個表格添加內部橫向框線', + ribbonTableInsideVBorders: '內側縱框線', + ribbonTableInsideVBordersTip: '僅對整個表格添加內部縱向框線', ribbonClearBordersTip: '清除選取儲存格的框線', ribbonBorderColor: '框線色彩', ribbonBorderWidth: '框線粗細', diff --git a/apps/docs/src/renderer/i18n/ribbon/zh.ts b/apps/docs/src/renderer/i18n/ribbon/zh.ts index 197404b..e24d43a 100644 --- a/apps/docs/src/renderer/i18n/ribbon/zh.ts +++ b/apps/docs/src/renderer/i18n/ribbon/zh.ts @@ -155,6 +155,10 @@ export const zh = { ribbonOuterBordersTip: '仅选区外侧加框线', ribbonInnerBorders: '内侧框线', ribbonInnerBordersTip: '仅选区内部加框线', + ribbonTableInsideHBorders: '内侧横框线', + ribbonTableInsideHBordersTip: '仅对整个表格添加内部横向框线', + ribbonTableInsideVBorders: '内侧纵框线', + ribbonTableInsideVBordersTip: '仅对整个表格添加内部纵向框线', ribbonClearBordersTip: '清除选中单元格框线', ribbonBorderColor: '框线颜色', ribbonBorderWidth: '框线粗细', diff --git a/apps/docs/tests/table-borders.test.ts b/apps/docs/tests/table-borders.test.ts new file mode 100644 index 0000000..fcd8edf --- /dev/null +++ b/apps/docs/tests/table-borders.test.ts @@ -0,0 +1,26 @@ +import { describe, expect, it } from 'vitest' + +import { tableBordersCss } from '../src/renderer/editor/extensions' + +describe('tableBordersCss', () => { + it('emits edge variables for declared sides and none otherwise', () => { + const css = tableBordersCss({ top: { style: 'single', szEighths: 4, color: '000000' } }) + expect(css).toContain('--doc-b-t:1px solid #000000') + expect(css).toContain('--doc-b-b:none') + expect(css).toContain('--doc-b-h:none') + expect(css).toContain('--doc-b-v:none') + }) + + it('emits insideH/insideV variables for table-level inner borders', () => { + const css = tableBordersCss({ + insideH: { style: 'single', szEighths: 4, color: 'FF0000' }, + insideV: { style: 'single', szEighths: 12, color: '0000FF' }, + }) + expect(css).toContain('--doc-b-h:1px solid #FF0000') + expect(css).toContain('--doc-b-v:2px solid #0000FF') + }) + + it('returns no declarations for a null attr', () => { + expect(tableBordersCss(null)).toEqual([]) + }) +})