Skip to content

Commit

Permalink
fix: Export missing static methods (#2506)
Browse files Browse the repository at this point in the history
  • Loading branch information
fb55 authored Apr 30, 2022
1 parent 7d32583 commit fedfaeb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/index.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import * as cheerio from './index';
import * as statics from './static';

describe('index', () => {
it('should export all static methods', () => {
for (const key of Object.keys(statics) as (keyof typeof statics)[]) {
expect(cheerio[key]).toBe(statics[key]);
}
});
});
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ import { filters, pseudos, aliases } from 'cheerio-select';
*/
export const select = { filters, pseudos, aliases };

export * from './static';

import * as staticMethods from './static';

/**
Expand Down

0 comments on commit fedfaeb

Please sign in to comment.