Skip to content
This repository was archived by the owner on Jan 4, 2022. It is now read-only.

Commit 806b443

Browse files
add tests for C and C++
1 parent 4947925 commit 806b443

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

test/test.js

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,19 @@ describe('Getting Information', function() {
5050
});
5151
});
5252

53-
it('should filter repos properly by language', function(done) {
53+
it('should filter repos properly when language is C', function(done) {
54+
this.timeout(3000);
55+
const filters = {
56+
languages: ['C']
57+
};
58+
client.repos(filters).then(results => {
59+
const repos = results.repos || results.data;
60+
expect(repos[0].languages).to.include('c');
61+
done();
62+
})
63+
});
64+
65+
it('should filter repos properly when language is C#', function(done) {
5466
this.timeout(3000);
5567
const filters = {
5668
languages: ['C#']
@@ -62,6 +74,18 @@ describe('Getting Information', function() {
6274
})
6375
});
6476

77+
it('should filter repos properly when language is C++', function(done) {
78+
this.timeout(3000);
79+
const filters = {
80+
languages: ['C++']
81+
};
82+
client.repos(filters).then(results => {
83+
const repos = results.repos || results.data;
84+
expect(repos[0].languages).to.include('c++');
85+
done();
86+
})
87+
});
88+
6589
it('should filter agencies properly by agency', function(done) {
6690
this.timeout(3000);
6791
const filters = {

0 commit comments

Comments
 (0)