Skip to content

Commit

Permalink
Fix list of methods/attributes at the end of api-introduction.md
Browse files Browse the repository at this point in the history
It was including methods of the callback and error classes, which it was not supposed to do
  • Loading branch information
pineapplemachine committed Mar 28, 2018
1 parent 50348b6 commit 86c363b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
8 changes: 0 additions & 8 deletions docs/api-introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,12 @@ Here is an exhaustive list of documented [`CanaryTest`](api-introduction.md) met
- [getChildren](api-advanced-usage.md#getchildren)
- [getErrors](api-advanced-usage.md#geterrors)
- [getFailedChildren](api-advanced-usage.md#getfailedchildren)
- [getLine](api-error-class.md#getline)
- [getLocationName](api-error-class.md#getlocationname)
- [getLocationTitle](api-error-class.md#getlocationtitle)
- [getName](api-advanced-usage.md#getname)
- [getName](api-callback-class.md#getname)
- [getOwner](api-callback-class.md#getowner)
- [getParent](api-advanced-usage.md#getparent)
- [getReport](api-running-tests.md#getreport)
- [getStatusString](api-advanced-usage.md#getstatusstring)
- [getSummary](api-running-tests.md#getsummary)
- [getTags](api-advanced-usage.md#gettags)
- [getTitle](api-callback-class.md#gettitle)
- [getTitle](api-advanced-usage.md#gettitle)
- [group](api-adding-tests.md#group)
- [hasTag](api-advanced-usage.md#hastag)
Expand All @@ -64,7 +58,6 @@ Here is an exhaustive list of documented [`CanaryTest`](api-introduction.md) met
- [isVerbose](api-status-attributes.md#isverbose)
- [log](api-intermediate-usage.md#log)
- [logVerbose](api-intermediate-usage.md#logverbose)
- [message](api-error-class.md#message)
- [noErrors](api-advanced-usage.md#noerrors)
- [noFailedChildren](api-advanced-usage.md#nofailedchildren)
- [onBegin](api-group-callbacks.md#onbegin)
Expand All @@ -84,7 +77,6 @@ Here is an exhaustive list of documented [`CanaryTest`](api-introduction.md) met
- [shouldSkip](api-advanced-usage.md#shouldskip)
- [silent](api-advanced-usage.md#silent)
- [skipped](api-status-attributes.md#skipped)
- [stack](api-error-class.md#stack)
- [startTime](api-status-attributes.md#starttime)
- [success](api-status-attributes.md#success)
- [tags](api-intermediate-usage.md#tags)
Expand Down
5 changes: 4 additions & 1 deletion docs/buildTestClassAttributeList.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
// This script is used to generate the list of methods and attributes at
// the bottom of api-introduction.md

const fs = require('fs');
const lower = "abcdefghijklmnopqrstuvwxyz";

const items = [];

fs.readdirSync(".").forEach(file => {
if(file.endsWith(".md")){
if(file.endsWith(".md") && file !== "api-callback-class.md" && file !== "api-error-class.md"){
const fileContent = fs.readFileSync(file).toString();
for(let line of fileContent.split("\n")){
if(line.startsWith("# ") && lower.indexOf(line[2]) >= 0){
Expand Down

0 comments on commit 86c363b

Please sign in to comment.