Skip to content

Commit

Permalink
chore: adds simple test to buildFilters
Browse files Browse the repository at this point in the history
  • Loading branch information
guatedude2 committed Jun 15, 2022
1 parent 033dda1 commit 28d45e2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/build-filters.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import { buildFilter } from './build-filter';

describe('buildFilter', () => {
it('creates a filter RegExp given a filter string', () => {
const result = buildFilter('.');

expect(result).toEqual(/^\/?\.$/i);
});

it('creates a filter RegExp given a wildcard filter string', () => {
const result = buildFilter('*');

Expand Down

0 comments on commit 28d45e2

Please sign in to comment.