-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Sorting): Sort the tag tree by tag and file (#22)
* docs(vscode-logo): Adds logo for extension (#20) * docs(logo): Add logo * build(config.yml): Add release branch * feat(Sorting): Sort the tag tree by tag and file (#21) Sort the tag tree alphbetically first by tags, then by file. Resolves #11 * style(tag-tree-data-provider.ts): Add some space in the import statement * ci(config.yml): Add develop branch to trigger ci
- Loading branch information
1 parent
fed680f
commit 70eb1ec
Showing
10 changed files
with
91 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ vsc-extension-quickstart.md | |
**/tsconfig.json | ||
**/tslint.json | ||
**/*.map | ||
**/*.ts | ||
**/*.ts | ||
**/*.psd |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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,12 @@ | ||
import { fileNodeSort, FileNode } from "./file-node"; | ||
|
||
describe(fileNodeSort.name, () => { | ||
test("Sorts in ascending order", () => { | ||
const fileNodeA = new FileNode("a", "a", "a", [], "a"); | ||
const fileNodeB = new FileNode("b", "b", "b", [], "b"); | ||
|
||
expect(fileNodeSort(fileNodeA, fileNodeB)).toEqual(-1); | ||
expect(fileNodeSort(fileNodeB, fileNodeA)).toEqual(1); | ||
expect(fileNodeSort(fileNodeA, fileNodeA)).toEqual(0); | ||
}); | ||
}); |
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,12 @@ | ||
import { tagNodeSort, TagNode } from "./tag-node"; | ||
|
||
describe(tagNodeSort.name, () => { | ||
test("Sorts in ascending order", () => { | ||
const tagNodeA = new TagNode(null, "a", ""); | ||
const tagNodeB = new TagNode(null, "b", ""); | ||
|
||
expect(tagNodeSort(tagNodeA, tagNodeB)).toEqual(-1); | ||
expect(tagNodeSort(tagNodeB, tagNodeA)).toEqual(1); | ||
expect(tagNodeSort(tagNodeA, tagNodeA)).toEqual(0); | ||
}); | ||
}); |
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