This repository was archived by the owner on Jan 4, 2022. It is now read-only.
File tree 1 file changed +25
-1
lines changed
1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,19 @@ describe('Getting Information', function() {
50
50
} ) ;
51
51
} ) ;
52
52
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 ) {
54
66
this . timeout ( 3000 ) ;
55
67
const filters = {
56
68
languages : [ 'C#' ]
@@ -62,6 +74,18 @@ describe('Getting Information', function() {
62
74
} )
63
75
} ) ;
64
76
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
+
65
89
it ( 'should filter agencies properly by agency' , function ( done ) {
66
90
this . timeout ( 3000 ) ;
67
91
const filters = {
You can’t perform that action at this time.
0 commit comments