Skip to content

Commit e1ab9f2

Browse files
committed
0.4.1
1 parent 599d9d7 commit e1ab9f2

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

gh-md-toc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# substr($0, match($0, "href=\".*\" ")+5, RLENGTH-6)
2424
#
2525

26-
gh_toc_version="0.4.0"
26+
gh_toc_version="0.4.1"
2727

2828
gh_user_agent="gh-md-toc v$gh_toc_version"
2929

tests/tests.bats

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ load test_helper
2424
}
2525

2626
@test "TOC for remote README.md" {
27-
run $BATS_TEST_DIRNAME/../gh-md-toc https://github.com/ekalinin/sitemap.js/blob/master/README.md
27+
run $BATS_TEST_DIRNAME/../gh-md-toc https://github.com/ekalinin/sitemap.js/blob/6bc3eb12c898c1037a35a11b2eb24ababdeb3580/README.md
2828
assert_success
2929

3030
assert_equal "${lines[0]}" "Table of Contents"
@@ -39,7 +39,7 @@ load test_helper
3939
@test "TOC for mixed README.md (remote/local)" {
4040
run $BATS_TEST_DIRNAME/../gh-md-toc \
4141
README.md \
42-
https://github.com/ekalinin/sitemap.js/blob/master/README.md
42+
https://github.com/ekalinin/sitemap.js/blob/6bc3eb12c898c1037a35a11b2eb24ababdeb3580/README.md
4343
assert_success
4444

4545
assert_equal "${lines[0]}" " * [gh-md-toc](README.md#gh-md-toc)"
@@ -52,10 +52,10 @@ load test_helper
5252
assert_equal "${lines[7]}" " * [Combo](README.md#combo)"
5353
assert_equal "${lines[8]}" " * [Tests](README.md#tests)"
5454
assert_equal "${lines[9]}" " * [Dependency](README.md#dependency)"
55-
assert_equal "${lines[10]}" " * [sitemap.js](https://github.com/ekalinin/sitemap.js/blob/master/README.md#sitemapjs)"
56-
assert_equal "${lines[11]}" " * [Installation](https://github.com/ekalinin/sitemap.js/blob/master/README.md#installation)"
57-
assert_equal "${lines[12]}" " * [Usage](https://github.com/ekalinin/sitemap.js/blob/master/README.md#usage)"
58-
assert_equal "${lines[13]}" " * [License](https://github.com/ekalinin/sitemap.js/blob/master/README.md#license)"
55+
assert_equal "${lines[10]}" " * [sitemap.js](https://github.com/ekalinin/sitemap.js/blob/6bc3eb12c898c1037a35a11b2eb24ababdeb3580/README.md#sitemapjs)"
56+
assert_equal "${lines[11]}" " * [Installation](https://github.com/ekalinin/sitemap.js/blob/6bc3eb12c898c1037a35a11b2eb24ababdeb3580/README.md#installation)"
57+
assert_equal "${lines[12]}" " * [Usage](https://github.com/ekalinin/sitemap.js/blob/6bc3eb12c898c1037a35a11b2eb24ababdeb3580/README.md#usage)"
58+
assert_equal "${lines[13]}" " * [License](https://github.com/ekalinin/sitemap.js/blob/6bc3eb12c898c1037a35a11b2eb24ababdeb3580/README.md#license)"
5959
assert_equal "${lines[14]}" "Created by [gh-md-toc](https://github.com/ekalinin/github-markdown-toc)"
6060
}
6161

@@ -79,7 +79,7 @@ load test_helper
7979
@test "--help" {
8080
run $BATS_TEST_DIRNAME/../gh-md-toc --help
8181
assert_success
82-
assert_equal "${lines[0]}" "GitHub TOC generator (gh-md-toc): 0.4.0"
82+
assert_equal "${lines[0]}" "GitHub TOC generator (gh-md-toc): 0.4.1"
8383
assert_equal "${lines[1]}" "Usage:"
8484
assert_equal "${lines[2]}" " gh-md-toc src [src] Create TOC for a README file (url or local path)"
8585
assert_equal "${lines[3]}" " gh-md-toc - Create TOC for markdown from STDIN"
@@ -90,7 +90,7 @@ load test_helper
9090
@test "no arguments" {
9191
run $BATS_TEST_DIRNAME/../gh-md-toc
9292
assert_success
93-
assert_equal "${lines[0]}" "GitHub TOC generator (gh-md-toc): 0.4.0"
93+
assert_equal "${lines[0]}" "GitHub TOC generator (gh-md-toc): 0.4.1"
9494
assert_equal "${lines[1]}" "Usage:"
9595
assert_equal "${lines[2]}" " gh-md-toc src [src] Create TOC for a README file (url or local path)"
9696
assert_equal "${lines[3]}" " gh-md-toc - Create TOC for markdown from STDIN"
@@ -101,5 +101,5 @@ load test_helper
101101
@test "--version" {
102102
run $BATS_TEST_DIRNAME/../gh-md-toc --version
103103
assert_success
104-
assert_equal "${lines[0]}" "0.4.0"
104+
assert_equal "${lines[0]}" "0.4.1"
105105
}

0 commit comments

Comments
 (0)