Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it( `The 'Matcher' classes should be top-level named exports of 'autolinker' (as of v2.0)`, () => {
expect( Autolinker.Matcher ).toEqual( jasmine.any( Function ) ); // constructor function
expect( Autolinker.Matcher.name ).toBe( 'Matcher' ); // function name
// Note: no methods which can be checked here - abstract methods are not compiled into ES5
expect( Autolinker.EmailMatcher ).toEqual( jasmine.any( Function ) ); // constructor function
expect( Autolinker.EmailMatcher.name ).toBe( 'EmailMatcher' ); // function name
expect( Autolinker.EmailMatcher.prototype.parseMatches ).toEqual( jasmine.any( Function ) );
expect( Autolinker.HashtagMatcher ).toEqual( jasmine.any( Function ) ); // constructor function
expect( Autolinker.HashtagMatcher.name ).toBe( 'HashtagMatcher' ); // function name
expect( Autolinker.HashtagMatcher.prototype.parseMatches ).toEqual( jasmine.any( Function ) );
expect( Autolinker.MentionMatcher ).toEqual( jasmine.any( Function ) ); // constructor function
expect( Autolinker.MentionMatcher.name ).toBe( 'MentionMatcher' ); // function name
expect( Autolinker.MentionMatcher.prototype.parseMatches ).toEqual( jasmine.any( Function ) );
expect( Autolinker.PhoneMatcher ).toEqual( jasmine.any( Function ) ); // constructor function
expect( Autolinker.PhoneMatcher.name ).toBe( 'PhoneMatcher' ); // function name
it( `The 'Matcher' classes should be top-level named exports of 'autolinker' (as of v2.0)`, () => {
expect( Autolinker.Matcher ).toEqual( jasmine.any( Function ) ); // constructor function
expect( Autolinker.Matcher.name ).toBe( 'Matcher' ); // function name
// Note: no methods which can be checked here - abstract methods are not compiled into ES5
expect( Autolinker.EmailMatcher ).toEqual( jasmine.any( Function ) ); // constructor function
expect( Autolinker.EmailMatcher.name ).toBe( 'EmailMatcher' ); // function name
expect( Autolinker.EmailMatcher.prototype.parseMatches ).toEqual( jasmine.any( Function ) );
expect( Autolinker.HashtagMatcher ).toEqual( jasmine.any( Function ) ); // constructor function
expect( Autolinker.HashtagMatcher.name ).toBe( 'HashtagMatcher' ); // function name
expect( Autolinker.HashtagMatcher.prototype.parseMatches ).toEqual( jasmine.any( Function ) );
expect( Autolinker.MentionMatcher ).toEqual( jasmine.any( Function ) ); // constructor function
expect( Autolinker.MentionMatcher.name ).toBe( 'MentionMatcher' ); // function name
expect( Autolinker.MentionMatcher.prototype.parseMatches ).toEqual( jasmine.any( Function ) );
expect( Autolinker.PhoneMatcher ).toEqual( jasmine.any( Function ) ); // constructor function