This repository was archived by the owner on Jan 4, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed
Expand file tree Collapse file tree 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() {
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 = {
You can’t perform that action at this time.
0 commit comments