Skip to content

Commit

Permalink
Add test case for vendored-false marking
Browse files Browse the repository at this point in the history
  • Loading branch information
Nixinova committed Mar 1, 2024
1 parent 0de4932 commit ba5ab5a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
14 changes: 10 additions & 4 deletions test/expected.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"files": {
"count": 9,
"bytes": 61,
"count": 10,
"bytes": 65,
"results": {
"~/al.al": "Perl",
"~/alternatives.asc": "AGS Script",
Expand All @@ -10,6 +10,7 @@
"~/folder/sub.txt": "Text",
"~/hashbang": "JavaScript",
"~/modeline.txt": "C++",
"~/package-lock.json": "JSON",
"~/Pipfile": "TOML",
"~/unknown": null
},
Expand All @@ -18,12 +19,17 @@
}
},
"languages": {
"count": 6,
"bytes": 52,
"count": 7,
"bytes": 56,
"results": {
"Perl": { "type": "programming", "bytes": 0, "color": "#0298c3" },
"AGS Script": { "type": "programming", "bytes": 14, "color": "#B9D9FF" },
"JavaScript": { "type": "programming", "bytes": 23, "color": "#f1e05a" },
"JSON": {
"type": "data",
"bytes": 4,
"color": "#292929"
},
"Text": { "type": "prose", "bytes": 0 },
"C++": { "type": "programming", "bytes": 15, "color": "#f34b7d" },
"TOML": { "type": "data", "bytes": 0, "color": "#9c4221" }
Expand Down
1 change: 1 addition & 0 deletions test/samples/.gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
* eol=crlf
file.txt linguist-language=JS
vendored linguist-vendored
package-lock.json -linguist-generated
1 change: 1 addition & 0 deletions test/samples/package-lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}

0 comments on commit ba5ab5a

Please sign in to comment.