-
-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test to ensure correct shared functions are being parsed
- Loading branch information
1 parent
df273f7
commit d7de420
Showing
5 changed files
with
97 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { CategoryData, CategoryOrScriptData, DocumentationUrlsData } from 'js-yaml-loader!@/*'; | ||
import { ScriptDataStub } from './ScriptDataStub'; | ||
|
||
export class CategoryDataStub implements CategoryData { | ||
public children: readonly CategoryOrScriptData[] = [ ScriptDataStub.createWithCode() ]; | ||
public category = 'category name'; | ||
public docs?: DocumentationUrlsData; | ||
|
||
public withChildren(children: readonly CategoryOrScriptData[]) { | ||
this.children = children; | ||
return this; | ||
} | ||
public withName(name: string) { | ||
this.category = name; | ||
return this; | ||
} | ||
public withDocs(docs: DocumentationUrlsData) { | ||
this.docs = docs; | ||
return this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters