All files util.ts

100% Statements 7/7
50% Branches 1/2
100% Functions 2/2
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8    4x   5x 4x 13x  
import {Tabs} from 'webextension-polyfill-ts';
 
export const MENU_ITEM_ID = 'tab-close-to-left';
 
export const toId: (item: Tabs.Tab) => number = item => item.id!;
export const minimizingIndex: (max: Tabs.Tab, cur: Tabs.Tab) => Tabs.Tab = (max, cur) =>
  cur.index < max.index ? cur : max;