Commit 5d72dda4 authored by Robert Knight's avatar Robert Knight

Rename `helpers/{view-filter => filter-annotations}`

Rename the module to match the main function it exports. This hopefully make it
more obvious what the module does.
parent 9333f013
import { filterAnnotations, $imports } from '../view-filter';
import { filterAnnotations, $imports } from '../filter-annotations';
function isoDateWithAge(age) {
return new Date(Date.now() - age * 1000).toISOString();
......@@ -17,7 +17,7 @@ const poem = {
Only this and nothing more.”`,
};
describe('sidebar/helpers/view-filter', () => {
describe('sidebar/helpers/filter-annotations', () => {
let fakeUnicode;
beforeEach(() => {
......
......@@ -45,7 +45,7 @@ describe('sidebar/helpers/thread-annotations', () => {
$imports.$mock({
'./build-thread': { buildThread: fakeBuildThread },
'../util/query-parser': fakeQueryParser,
'./view-filter': { filterAnnotations: fakeFilterAnnotations },
'./filter-annotations': { filterAnnotations: fakeFilterAnnotations },
});
});
......
......@@ -3,9 +3,9 @@ import { memoize } from '../util/memoize';
import { parseFilterQuery } from '../util/query-parser';
import { buildThread } from './build-thread';
import type { Thread, BuildThreadOptions } from './build-thread';
import { filterAnnotations } from './filter-annotations';
import { shouldShowInTab } from './tabs';
import { sorters } from './thread-sorters';
import { filterAnnotations } from './view-filter';
export type ThreadState = {
annotations: Annotation[];
......
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