Skip to content

Commit bc44b82

Browse files
committed
Fix test runner for *.spec files rather than *Spec
1 parent 5364a4f commit bc44b82

36 files changed

+119
-119
lines changed

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ function serveTask() {
159159

160160

161161
function testTask( done ) {
162-
return gulp.src( './build/**/*Spec.js' )
162+
return gulp.src( './build/**/*.spec.js' )
163163
.pipe( jasmine( { verbose: false, includeStackTrace: true } ) );
164164
}
165165

src/anchor-tag-builder.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { Match } from "./match/Match";
2-
import { HtmlTag } from "./HtmlTag";
3-
import { TruncateConfig } from "./Autolinker";
4-
import { truncateSmart } from "./truncate/truncateSmart";
5-
import { truncateMiddle } from "./truncate/truncateMiddle";
6-
import { truncateEnd } from "./truncate/truncateEnd";
1+
import { Match } from "./match/match";
2+
import { HtmlTag } from "./html-tag";
3+
import { TruncateConfig } from "./autolinker";
4+
import { truncateSmart } from "./truncate/truncate-smart";
5+
import { truncateMiddle } from "./truncate/truncate-middle";
6+
import { truncateEnd } from "./truncate/truncate-end";
77

88
/**
99
* @protected

src/autolinker.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import { defaults, remove } from "./utils";
2-
import { AnchorTagBuilder } from "./AnchorTagBuilder";
3-
import { HtmlParser } from "./htmlParser/HtmlParser";
4-
import { Match } from "./match/Match";
5-
import { UrlMatch } from "./match/Url";
6-
import { Matcher } from "./matcher/Matcher";
7-
import { HtmlTag } from "./HtmlTag";
8-
import { EmailMatcher } from "./matcher/Email";
9-
import { UrlMatcher } from "./matcher/Url";
10-
import { ElementNode } from "./htmlParser/ElementNode";
11-
import { HashtagMatcher } from "./matcher/Hashtag";
12-
import { PhoneMatcher } from "./matcher/Phone";
13-
import { MentionMatcher } from "./matcher/Mention";
2+
import { AnchorTagBuilder } from "./anchor-tag-builder";
3+
import { HtmlParser } from "./htmlParser/html-parser";
4+
import { Match } from "./match/match";
5+
import { UrlMatch } from "./match/url-match";
6+
import { Matcher } from "./matcher/matcher";
7+
import { HtmlTag } from "./html-tag";
8+
import { EmailMatcher } from "./matcher/email-matcher";
9+
import { UrlMatcher } from "./matcher/url-matcher";
10+
import { ElementNode } from "./htmlParser/element-node";
11+
import { HashtagMatcher } from "./matcher/hashtag-matcher";
12+
import { PhoneMatcher } from "./matcher/phone-matcher";
13+
import { MentionMatcher } from "./matcher/mention-matcher";
1414

1515
/**
1616
* @class Autolinker

src/htmlParser/comment-node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { HtmlNode, HtmlNodeConfig } from "./HtmlNode";
1+
import { HtmlNode, HtmlNodeConfig } from "./html-node";
22

33
/**
44
* @class Autolinker.htmlParser.CommentNode

src/htmlParser/element-node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* See this class's superclass ({@link Autolinker.htmlParser.HtmlNode}) for more
88
* details.
99
*/
10-
import { HtmlNode, HtmlNodeConfig } from "./HtmlNode";
10+
import { HtmlNode, HtmlNodeConfig } from "./html-node";
1111

1212
export class ElementNode extends HtmlNode {
1313

src/htmlParser/entity-node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* See this class's superclass ({@link Autolinker.htmlParser.HtmlNode}) for more
1313
* details.
1414
*/
15-
import { HtmlNode } from "./HtmlNode";
15+
import { HtmlNode } from "./html-node";
1616

1717
export class EntityNode extends HtmlNode {
1818

src/htmlParser/html-parser.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
* 5. The tag name for a tag with attributes (other than the <!DOCTYPE> tag)
1616
*/
1717
import { splitAndCapture } from "../utils";
18-
import { CommentNode } from "./CommentNode";
19-
import { ElementNode } from "./ElementNode";
20-
import { EntityNode } from "./EntityNode";
21-
import { TextNode } from "./TextNode";
22-
import { HtmlNode } from "./HtmlNode";
18+
import { CommentNode } from "./comment-node";
19+
import { ElementNode } from "./element-node";
20+
import { EntityNode } from "./entity-node";
21+
import { TextNode } from "./text-node";
22+
import { HtmlNode } from "./html-node";
2323

2424
const htmlRegex = (function() {
2525
let commentTagRegex = /!--([\s\S]+?)--/,

src/htmlParser/text-node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { HtmlNode } from "./HtmlNode";
1+
import { HtmlNode } from "./html-node";
22

33
/**
44
* @class Autolinker.htmlParser.TextNode

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export * from './AnchorTagBuilder';
2-
export * from './Autolinker';
3-
export * from './HtmlTag';
1+
export * from './anchor-tag-builder';
2+
export * from './autolinker';
3+
export * from './html-tag';
44
export * from './match';
55
export * from './matcher';

src/match/email-match.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Match, MatchConfig } from "./Match";
1+
import { Match, MatchConfig } from "./match";
22

33
/**
44
* @class Autolinker.match.Email

0 commit comments

Comments
 (0)